Python Forum
Found input variables with inconsistent numbers of samples: [1000, 200]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Found input variables with inconsistent numbers of samples: [1000, 200]
#3
(Sep-15-2021, 09:48 AM)ibreeden Wrote: Hi Jenya56, you are not making it easy for us to understand the problem. First: if there is an error message you should post the complete message (in error tags). Second: the code you show us appears to generate no errors, but you mention vaguely there are accuracy calculations running after your code. Apperantly the error comes from those calculations.
You mention:
(Sep-14-2021, 09:11 PM)jenya56 Wrote: Once the function returns
... but there is no function in your code, and then of course no return statement. My guess is you should write this as a function, returning values to the accuracy calculations.

Hi! I actually found the problem. For reference, I did not have to do splitting of data. My y_pred was not equal to y (shape wise) and was complaining about that! THANK YOU
Reply


Messages In This Thread
RE: Found input variables with inconsistent numbers of samples: [1000, 200] - by jenya56 - Sep-15-2021, 12:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I calculate a ratio from 2 numbers and return an equivalent list of about 1000 Pleiades 8 15,638 Jan-05-2024, 08:30 PM
Last Post: sgrey
  Read csv file with inconsistent delimiter gracenz 2 1,196 Mar-27-2023, 08:59 PM
Last Post: deanhystad
  Inconsistent loop iteration behavior JonWayn 2 995 Dec-10-2022, 06:49 AM
Last Post: JonWayn
  ValueError: Found input variables with inconsistent numbers of samples saoko 0 2,471 Jun-16-2022, 06:59 PM
Last Post: saoko
  WHILE Loop - constant variables NOT working with user input boundaries C0D3R 4 1,480 Apr-05-2022, 06:18 AM
Last Post: C0D3R
  Loop Dict with inconsistent Keys Personne 1 1,606 Feb-05-2022, 03:19 AM
Last Post: Larz60+
  Inconsistent counting / timing with threading rantwhy 1 1,759 Nov-24-2021, 04:04 AM
Last Post: deanhystad
  Inconsistent behaviour in output - web scraping Steve 6 2,541 Sep-20-2021, 01:54 AM
Last Post: Larz60+
  Packages inconsistent warning during hdbscan install Led_Zeppelin 0 1,927 Aug-31-2021, 04:10 PM
Last Post: Led_Zeppelin
  Python Pandas: How do I average ONLY the data >1000 from several columns? JaneTan 0 1,470 Jul-17-2021, 01:34 PM
Last Post: JaneTan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020