AttributeError: 'numpy.ndarray' object has no attribute 'values'

0 votes

Training_Set = Training_Set.values
sc = MinMaxScaler(feature_range=(0, 1))
Train = sc.fit_transform(Training_Set)

AttributeError                            Traceback (most recent call last)
<ipython-input-38-46db85ef43d1> in <module>
----> 1 Training_Set = Training_Set.values
      2 sc = MinMaxScaler(feature_range=(0, 1))
      3 Train = sc.fit_transform(Training_Set)

AttributeError: 'numpy.ndarray' object has no attribute 'values'
Oct 19 in Machine Learning by neha
• 140 points

recategorized Oct 19 by MD 174 views
Hi@neha,

You are using the wrong arguments when you are transforming your dataset. Share your complete code here.

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer

AttributeError: module 'tensorflow.compat' has no attribute 'v1'

Hi@Usman, It seems you are using an older ...READ MORE

answered Jul 18 in Machine Learning by MD
• 77,580 points
1,698 views
0 votes
1 answer
0 votes
1 answer

AttributeError: module 'cv2.cv2' has no attribute 'face_LBPHFaceRecognizer'

Hi@MD, LBPHFaceRecognizer module comes from a package named ...READ MORE

answered Apr 20 in Machine Learning by akhtar
• 32,960 points
4,284 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'constant'

Hi@akhtar, There may be problem in the versions. ...READ MORE

answered Apr 21 in Machine Learning by MD
• 77,580 points
5,126 views
0 votes
1 answer

AttributeError: module 'tensorflow' has no attribute 'enable_eager_execution'

Hi@akhtar, Tensorflow 2.0 has eager_execution enabled by default and ...READ MORE

answered Apr 21 in Machine Learning by MD
• 77,580 points
764 views
+1 vote
2 answers

What is the difference between correlation and covariance?

Correlation and Co-variance both are used as ...READ MORE

answered Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
2,195 views
0 votes
1 answer

How do I become a data scientist step by step?

I am assuming that you are a ...READ MORE

answered Jul 26, 2018 in Data Analytics by Abhi
• 3,720 points
161 views
0 votes
1 answer

What is the difference between random forest and decision trees?

The basic difference is that Random Forest ...READ MORE

answered Jul 30, 2018 in Data Analytics by Abhi
• 3,720 points
1,144 views