Skip to content

Update income_classifier.py #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update income_classifier.py #1

wants to merge 2 commits into from

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