Skip to content

Conversation

@ziippy
Copy link

@ziippy ziippy commented Sep 28, 2017

transform() argument type is will be list.
classifier.predict() argument expected 2D array.

The code is not running on my environment.
becauese the transform() argument type is will be list.
So, I try to change the input_data[i] -> [input_data[i]] then, It works.
classifier.predict() function's argument expected 2D array.
So, I change the classifier.predict(input_data_encoded) to classifier.predict([input_data_encoded])  then... It works.
@ziippy ziippy changed the title Patch 1 Update income_classifier.py Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant