We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to run test.py (https://www.deploymachinelearning.com/serve-ml-models/) and I am getting the error pasted below.I have tried debugging and finding the issue .Please help as i am stuck there for sometime.
Ran 1 test in 0.828s
OK Destroying test database for alias 'default'...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to run test.py (https://www.deploymachinelearning.com/serve-ml-models/) and I am getting the error pasted below.I have tried debugging and finding the issue .Please help as i am stuck there for sometime.
(venv) PS F:\pr_project\Django\MLwDjango\backend\server> python manage.py test apps.ml.tests
Found 1 test(s).
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
Path to artifacts: ../../research/
Values fill missing: {'age': 31.0, 'workclass': 'Private', 'fnlwgt': 121124, 'education': 'HS-grad', 'education-num': 9.0, 'marital-status': 'Married-civ-spouse', 'occupation': 'Prof-specialty', 'relationship': 'Husband', 'race': 'White', 'sex': 'Male', 'capital-gain': 0.0, 'capital-loss': 0.0, 'hours-per-week': 40.0, 'native-country': 'United-States'}
Encoders: {'workclass': LabelEncoder(), 'education': LabelEncoder(), 'marital-status': LabelEncoder(), 'occupation': LabelEncoder(), 'relationship': LabelEncoder(), 'race': LabelEncoder(), 'sex': LabelEncoder(), 'native-country': LabelEncoder()}
Model: RandomForestClassifier()
Preprocessing input data...
Filled missing values:
age workclass fnlwgt education education-num marital-status occupation relationship race sex capital-gain capital-loss hours-per-week native-country
0 37 Private 34146 HS-grad 9 Married-civ-spouse Craft-repair Husband White Male 0 0 68 United-States
Encoding column: workclass
Error occurred in compute_prediction:
invalid literal for int() with base 10: 'Private'
.
Ran 1 test in 0.828s
OK
Destroying test database for alias 'default'...
The text was updated successfully, but these errors were encountered: