ageron / ageron/handson-ml

ValueError: Number of features of the model must match the input

Offen
#572 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
25.6k
Forks
12.7k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

I am using random forest model to predict the sales quantity.
I have listed all parts in a row based while the quantity is in a monlthy based (each column represent a month)
During splitting the data in to train and test:
the training data will have less columns than the test set. meaning that I added one month to the test data.
when i run the model, an error is rasied :
ValueError: Number of features of the model must match the input. Model n_features is 22 and input n_features is 23.

Could you please help me on how to tackle this problem.

your help is really appreciated,
thanks in Advanced

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.