ValueError Found input variables with inconsistent numbers of samples 616 308

0 votes
Sep 23, 2020 in Machine Learning by Aishwarya
• 120 points
4,243 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,460 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 5,286 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,460 points
5,277 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,460 points
5,093 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,460 points
3,049 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,460 points
1,397 views
0 votes
0 answers

100 samples of 20 from the dataset and drawing regression lines along with population regression line

I have a datasetwith two variables hours ...READ MORE

Apr 11, 2022 in Machine Learning by Dev
• 6,000 points
710 views
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,460 points

edited Aug 11, 2021 by Soumya 57,834 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