ValueError Found input variables with inconsistent numbers of samples 616 308

0 votes
Sep 23, 2020 in Machine Learning by Aishwarya
• 120 points
2,870 views
Hi,

Can you share your code? It will help to find out the error.

1 answer to this question.

0 votes

Hi@Alshwarya,

I think there is a problem with your feature parameter. if you have two columns in your dataset. Your feature parameter should not be 1D. So check the shape of that and if it is 1D, then convert it from 1D to 2D. Say your feature parameter is x.

$ x.shape
$ x.reshape(-1,1)
answered Sep 23, 2020 by MD
• 95,380 points

Related Questions In Machine Learning

0 votes
0 answers

ValueError: Found input variables with inconsistent numbers of samples: [11, 3988]

After reshaping also I am getting the ...READ MORE

Aug 27, 2020 in Machine Learning by sairam
• 160 points

edited Aug 27, 2020 by MD 3,945 views
0 votes
1 answer
0 votes
1 answer

Found input variables with inconsistent numbers of samples:

Hi@sagar, You have converted your Dataframe into an ...READ MORE

answered Jul 13, 2020 in Machine Learning by MD
• 95,380 points
4,238 views
0 votes
1 answer

problem with Found input variables with inconsistent numbers of samples: [1204, 134]

Hi@Alessandro, Here you used x as your feature parameter ...READ MORE

answered Jul 20, 2020 in Machine Learning by MD
• 95,380 points
3,592 views
0 votes
1 answer

Found input variables with inconsistent numbers of samples: [30, 120]

Hi@Kinjal, There is a problem with your X ...READ MORE

answered Dec 21, 2020 in Machine Learning by MD
• 95,380 points
1,858 views
0 votes
1 answer

value error found with inconsistent samples

Hi, As you can see that you have ...READ MORE

answered Dec 28, 2020 in Machine Learning by MD
• 95,380 points
463 views
0 votes
0 answers
0 votes
1 answer
+1 vote
2 answers

ValueError: Found input variables with inconsistent numbers of samples: [1, 1000]

Hi@akhtar, Here you used x as your feature ...READ MORE

answered Apr 14, 2020 in Machine Learning by MD
• 95,380 points

edited Aug 11, 2021 by Soumya 50,293 views
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP