Open VishnuPy opened 5 years ago
You need to get the dependencies right. It may be possible that you are using a newer version of the libraries to those that I have used.
By the way, looking at the error you might need to reshape the data to a 2D array before passing to the standard scalar. Try printing shape of the data array you need to get something like this - (1,20) instead of (20,) or (,20).
Hope it helps.
hi Gaurav,
Thanks a ton for responding to my trivial question.
I realized that i was trying to run TRANSFORM on test dataset. this should not be done. Reason being that Test Dataset and Train Dataset incidentally have differences. Thanks for Responding once again.
Regards, Vishnu
https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=07719cfe-3295-44be-8980-e6d826bca8f3 I’m protected online with Avast Free Antivirus. Get it here — it’s free forever. https://www.avast.com/en-in/recommend?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=default3&tag=07719cfe-3295-44be-8980-e6d826bca8f3 <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Apr 9, 2019 at 11:15 AM Gaurav Bhatt notifications@github.com wrote:
You need to get the dependencies right. It may be possible that you are using a newer version of the libraries to those that I have used.
By the way, looking at the error you might need to reshape the data to a 2D array before passing to the standard scalar. Try printing shape of the data array you need to get something like this - (1,20) instead of (20,) or (,20).
Hope it helps.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/GauravBh1010tt/DeepLearn/issues/25#issuecomment-481110603, or mute the thread https://github.com/notifications/unsubscribe-auth/Auruq_XKm90m6Vs9_LdkYUE2iSTJ2WoGks5vfCjpgaJpZM4ceo96 .
Use
X_train= X_train.values.reshape(-1, 1) X_test = X_test.values.reshape(-1, 1)
I just started learning DataScience and ML. Trying out code available online.
I have got PandaDataframes (Xtrain, Xtest) and Panda Series (ytrain and ytest) as output from Train_Test_Split function.
When Xtrain and Xtest are put thru normalization (SC.fit_transform and SC.tranform functions) both were successful.
But, i am not able to get past ytrain and ytest normalization. It gives below error
ValueError Traceback (most recent call last)