Number of Instances reduces after normalizing data set in csv file ?

1 visualizzazione (ultimi 30 giorni)
Hello, I have normalized my data set using
Data = rand(10, 20); % Test data, use your data instead
minData = min(Data(:));
maxData = max(Data(:));
scaled = (Data - minData) / (maxData - minData); % Scaled to [0, 1]
scaled = scaled * 2 - 1; % Scaled to [-1, 1]
to train my machine,now in my data set number of rows(instances) is reduced, before normalizing it was 88 after normalizing it is reduced to 10. I want to know it is normal or there is some fault.Please help.
  1 Commento
Jan
Jan il 4 Mag 2017
Modificato: Jan il 4 Mag 2017
I have formatted the code using the "{} Code" button. Please do this by your own in the future. Thanks.
The shown code does not change the size of the array. If the size of your array is changed, you run another code. If we do not see this other code, we cannot guess the reason for its behavior. I would boldly guess, that changing the size is a fault, but you are the one, who should know this exactly. Does Matlab do exactly what you need and expect?
Please post the code you use and which produces the problem, not any other code. Omit details, which do not concern the problem: it does not matter, if the data are coming from a CSV file.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su AI for Signals in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by