566 questions
0
votes
0
answers
58
views
Why are OMPL quaternions almost 0?
I'm working with OMPL trying a version of this demo but changing it to 3 dimensions and using it for ROS2 (That last part about ROS2 is not relevant). Of course, I need the quaternion to make the ...
0
votes
1
answer
52
views
How to normalise two categories of season with an uneven number of months using the function mutate() in the dplyr package
During fieldwork, we collected data for counts of dolphins at coral reefs per month, per year. I have split my data into seasons for winter and summer.
This is my method for dplyr:
Step 1: Calculate ...
0
votes
0
answers
51
views
"Normalize" duration time data and plot in Matlab
I have the following data sets that have in the x-axis time in "HH:mm:ss".
Each data set has different numbers of "times" but they are all within a 2hr duration.
I want to plot ...
0
votes
0
answers
40
views
Unused Arguments in EBImage normalize() function
I have been trying to run the code in R to normalize an image and clip the channel at 0.2. However, I keep getting an issued argument for anything I put after the first argument. inputRange is listed ...
1
vote
1
answer
255
views
2d scatter plot - mcolors.Normalize vs mcolors.LogNorm
I have a scatter plot that I'm making but when I switch between mcolors.Normalize and mcolors.LogNorm the color bar is not consistent between the two figures - I would think that the normalized color ...
0
votes
1
answer
82
views
Can't normalize my custom index to start at 0% y-intercept
I'm trying to normalize my script plot of the Mag7 index to start at the y-intercept, so that it lines up with the NASDAQ composite index (IXIC). The bespoke index consists of prices and total ...
0
votes
0
answers
182
views
Why NumPy eigenvectors and SymPy eigenvectors are different?
I'm working on a project that involves calculations with eigenvalues and eigenvectors. At the beginning I was doing everything in NumPy, but for diverse causes I had to change everything to SymPy. My ...
-4
votes
1
answer
80
views
Transform the below data as required using python
I had input in below format:
Expected output is in below format:
I tried using pandas data frame to format the data & used the normalize techniques but it didn't work as per expectation.
So ...
1
vote
0
answers
95
views
.Net 6 - Diacritics removal failed
I have an issue removing diacritics from an filename provided by FrontEnd.
I found this post here where it solved the problem.
BUT! ^^
It's not doing the job for me on all my Backend Application.
We ...
0
votes
2
answers
157
views
Normalize two different jsons according to shared values
I have two data sources that I retrieve different format Json's from and I want to create a normalized object that will represent the merged Json's according to distinct values.
For example, the first ...
1
vote
2
answers
629
views
Normalize a Unicode string in PHP
In PHP,
mb_strtolower('İspanyolca');
returns
U+0069 i LATIN SMALL LETTER I
U+0307 ̇ COMBINING DOT ABOVE
U+0073 s LATIN SMALL LETTER S
U+0070 p LATIN SMALL LETTER P
etc.
I need to ...
1
vote
3
answers
57
views
Python Pandas- Dataframe from Nested JSON
I am trying to normalize a nested JSON file in pandas.
I am unable to get the ab_id column in the beginning as observed in the current output screenshot.
Additionally, since if I remove record prefix ...
0
votes
1
answer
357
views
Normalize JSON data to Pandas DataFrame where columns and values are in lists
I have the following complex JSON data that needs to be normalised to a Pandas DataFrame.
{
"notice": {
"copyright": "Copyright Info",
"...
0
votes
2
answers
509
views
Regex expression to validate ONLY hindi (devnagri) letters in PYTHON [duplicate]
I am trying to build a tokenizer which takes in Hindi sentence and removes any other scripts present in it.
This is my code that i have written and the output is attached as well.
I tried this
import ...
0
votes
0
answers
27
views
Fit two line graphs with different values in the same chart
I have one set of data called Earnings which span from 0-80000, and one called NBPrice which span from 0-200, and would like to fit both in the same chart, but the first range is too high, any way to ...
1
vote
0
answers
200
views
Using symfony normalizers for translation, good or not?
I am using symfony normalizer for translations. Every time I have specific object I want to translate data in that object. Is it correct to translate data in normalizer?
class ExampleNormalizer ...
0
votes
1
answer
134
views
Django normalize() is showing 1E+1
I'm trying to create a function in my model to display product info, and in my model I have the following:
class Product(models.Model):
price = models.DecimalField(max_digits=10, decimal_places=2)
...
1
vote
1
answer
141
views
How to use Pandas to normalize a nested JSON - nested dictionaries and lists flattened
I would like to flatten a json request from an API. I have been trying to use pandas to achieve this.
Here is a sample of the json I am working with:
response =
{
"data": {
&...
1
vote
0
answers
186
views
Normalizing audio of several wav snippets with ffmpeg
I searched the site and I figured that maybe ffmpeg-normalize could be part of my solution but I'm really not sure.
In my free time me and my friends create quizzes for people to solve. One of these ...
0
votes
1
answer
880
views
Symfony normalize numbered property like addressLine1
I'm trying to normalize an Address object with the Symfony Serializer but the following property is not normalized correctly.
Address object
final class Address {
...
private ?string $...
0
votes
1
answer
264
views
How to normalize TOTAL INTENSITY of two images? (Matlab)
I have two images with same dimensions. I want to make the total intensity of these two images to be the same. For example, image A has total intensity of 100, I want the image B to also have the same ...
3
votes
2
answers
74
views
How to obtain normalized data per group using scale() in R?
For example, I have a data like below.
dataA=structure(list(variety = c("CV1", "CV1", "CV1", "CV1", "CV1",
&...
0
votes
0
answers
145
views
Why is the minimal value after applying cv2.normalize not exactly zero?
I have a 2-D array with floating points. and I want to normalize it between 0-255 in python. I applied the opencv normalization like this:
result = cv2.normalize(my_array, None, alpha=0, beta=255, ...
-1
votes
3
answers
830
views
Normalize a list containing only positive data into a range comprising negative and positive values
I have a list of data that only contains positive values, such as the list below:
data_list = [3.34, 2.16, 8.64, 4.41, 5.0]
Is there a way to normalize this list into a range that spans from -1 to +1?...
-2
votes
1
answer
4k
views
AttributeError: 'DataFrame' object has no attribute 'to_json' in Databricks
The image above is the JSON structure.
I am trying to normalize this dataframe so that it can be explored for further usage but I keep getting the following error and the command used is given below:
...
0
votes
0
answers
84
views
Python: Translate utf-8 characters as good as possible to latin letters
I have a text with many utf-8 characters such as š,œ and Ó.
There are many questions on this plattform regarding how to transform utf-8 to ascii focusing on the byte-encoding.
I would like to know ...
0
votes
2
answers
99
views
AssertionError when normalizing matrix in Python
I have defined the following function in Python to return a normalized version of the matrix M.
def get_normalized_matrix(M, O):
M_copy = np.copy(M)
M_copy[O == 0] = 0
a = np.sum(M_copy) / ...
0
votes
1
answer
1k
views
How to format backend response data with snake_case fields and "magic numbers" in a React/TypeScript project? [closed]
I'm working on a React and TypeScript project, and I'm making several requests to the backend using axios. However, I noticed that the response data is not properly formatted. Specifically, the fields ...
-1
votes
1
answer
56
views
Normalizing a board game notation
I have a board game notation for the game of Hnefatafl which I need to rotate clockwise. In the game of Hnefatafl we use a 11x11 board with files from A to K and ranks numbered from 1 to 11.
So, here ...
0
votes
1
answer
124
views
How to normalize data in a python array by column using SKLearn?
I am coding a machine learning algorithm using Keras and I need to normalize my data before feeding it through. I have 3 inputs organised into a 2d array with each column making up an input.
...
0
votes
1
answer
47
views
How to convert multi dimensional array in JSON as separate columns in pandas
I have a DB collection consisting of nested strings . I am trying to convert the contents under "status" column as separate columns against each order ID in order to track the time taken ...
0
votes
1
answer
50
views
Python: Issue with reassigning columns to DataFrame
I have a DataFrame with multiple columns. I am trying to normalize all the columns except for one, price.
I found a code that works perfectly on a sample DataFrame I created, but when I use it on the ...
-1
votes
3
answers
70
views
How to transform my column values that are lists of dictionaries to new columns in my pd.DataFrame?
Here is my pd.DataFrame with its metadata column:
date metadata
0 2022-12-03 [{'key': 'key1', 'value': value0.1'}, {'key': 'key2', 'value': value0.2'}, {'key': 'key3', 'value': ...
0
votes
1
answer
237
views
BoundaryNorm, unexpected behavior
My code:
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import colors
x = y = np.linspace(0, 10, 51)
X, Y = np.meshgrid(x, y)
Z = X+Y # Z.min() => 0, Z.max() => 20
cf = plt....
1
vote
2
answers
1k
views
Normalize Special Letter Char from Various Foreigner Languages
Forgive my ignorance for not knowing the technical term for foreigner languages that use characters as
ø i.e. Helsingør
Ł i.e Łeczna
ı i.e Altınordu
ł i.e. Głogow
how could I normalize those with ...
0
votes
1
answer
148
views
Convert JSON keys to set in different columns with preset headers in pandas
Want to implement dataframe expansion from JSON data with preset values. Collating all the key values within JSON data to be set as column headers
id |Name | MonthWise
0 |ABC |{'102022':{'val':...
0
votes
3
answers
453
views
MinmaxScaler: Normalise a 4D array of input
I have a 4D array of input that I would like to normalise using MinMaxScaler. For simplicity, I give an example with the following array:
A = np.array([
[[[0, 1, 2, 3],
[3, 0,...
1
vote
0
answers
90
views
Normalize one (umlaut) character results in two
I assume I didn't fully understand unicodedata.normalize() function in Python.
from unicodedata import normalize
result = normalize('NFKD', 'Ä')
print(result) # 'A'
print(len(result)) # 2
print(...
0
votes
0
answers
42
views
How to get a running normalized column in pandas?
I am trying to make a new column with the proportion of the whole, grouping by the "category" and "conservation_status" column. I am not sure if "normalize" is the ...
1
vote
1
answer
686
views
mean is not 0 after Normalize (Torchvision)
I am trying to understand Normalize() from Trochvision.transforms. After using it, the mean should be 0 and the std() should be 1. At least that's what the tutorials tell. But it does not work!
I ...
0
votes
0
answers
207
views
What is the reason to select MinMaxScaler or Normalization?
I am working on LSTM model, and i saw different pre-processing for the similar data on the web. Can you please help me to understand difference between them and which one should i select:
1) ...
1
vote
1
answer
475
views
Having issue with max_norm parameter of torch.nn.Embedding
I use torch.nn.Embedding to embed my model’s categorical input features, however, I face problems when I set the max_norm parameter to not None.
There is a note on the pytorch docs page that explains ...
0
votes
1
answer
384
views
Normalize spacy nlp vectors
I am working with an nlp model where I'd like to normalize the nlp.vocab.vectors. From the documentation about spacy vectors it states that it's an numpy ndarray.
I've googled a fair bit about ...
1
vote
1
answer
161
views
How to create a single oracle procedure to perform multiple query task
Actually, I want to create an oracle procedure to normalize the table and for that we required a multiple queries/task to perform /execute. Below are the steps for which will help to write an oracle ...
1
vote
1
answer
963
views
How to normalize negative number in numpy array [closed]
I have video features as numpy files (.npy) with the shape of (15, 2048) with positive and negative value. I want to normalize it so that all the values are positive only. The numpy array is something ...
2
votes
2
answers
129
views
Nested JSON to CSV (multilevel)
I received a JSON file to transform into a CSV file.
[
{
"id": "132465",
"ext_numero_commande": "4500291738L",
"ext_line_items&...
0
votes
0
answers
321
views
Teradata normalize equivalent in Snowflake
I'm working on convertion of sql from Teradata to snowflake, I've encoutered Normalize in sql with period(). Is there any equivalent in snowflake?
...
select normalize
id,
abc,
xyz,
period(time,
...
2
votes
1
answer
158
views
R function that selects for numeric vectors and normalizes x to mean(x) = 0 and sd(x) = 1
In R I want to program a function normalize() that normalizes a numeric vector x to mean(x) = 0 and sd(x) = 1, and that provides flexibility in handling NAs using tidyverse functionality.
Using the ...
0
votes
2
answers
82
views
Dynamically/Recursively Normalize Data while Iterating through a Python Dictionary
I have a dictionary that looks like:
my_dict = {
'_id': '12powensjdm683ma23',
'data': {
'account': 'FUNDING',
'form': {
'accounts': {
'credit': {
'...
0
votes
0
answers
74
views
Data normalization to use as input in ML algorithms
I would like to get some suggestions about the best way to normalize my dataset to use as ML inputs.
My dataset looks like this:
--------------------------------------------------------------------...