필터 지우기
필터 지우기

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

조회 수: 1 (최근 30일)
tejasvee
tejasvee 2017년 5월 4일
편집: Jan 2017년 5월 4일
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
Jan
Jan 2017년 5월 4일
편집: Jan 2017년 5월 4일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 AI for Signals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by