Skip to content
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

KeyError on clicking predict #16

Open
Bhuvan1601 opened this issue Jan 29, 2023 · 0 comments
Open

KeyError on clicking predict #16

Bhuvan1601 opened this issue Jan 29, 2023 · 0 comments

Comments

@Bhuvan1601
Copy link

Traceback (most recent call last):
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\handlers\exception.py", line 47, in inner
response = get_response(request)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\django\core\handlers\base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\django\contrib\auth\decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File "C:\Users\Lenovo\OneDrive\Desktop\Heart-and-Kidney-disease-prediction-Django-master\predict_risk\views.py", line 32, in PredictRisk
SVCClassifier,LogisticRegressionClassifier,NaiveBayesClassifier,DecisionTreeClassifier,NeuralNetworkClassifier,KNNClassifier=GetAllClassifiersForHeart()
File "C:\Users\Lenovo\OneDrive\Desktop\Heart-and-Kidney-disease-prediction-Django-master\predict_risk\data_provider.py", line 32, in GetAllClassifiersForHeart
return (GetSVCClassifierForHeart(),GetLogisticRegressionClassifierForHeart(),GetNaiveBayesClassifierForHeart(),GetDecisionTreeClassifierForHeart(),GetDeepLearningClassifierForHeart(),GetKNNClassifierForHeart())
File "C:\Users\Lenovo\OneDrive\Desktop\Heart-and-Kidney-disease-prediction-Django-master\predict_risk\data_provider.py", line 35, in GetSVCClassifierForHeart
return GetJobLibFile(config['heart']['SVC'])
File "C:\Users\Lenovo\OneDrive\Desktop\Heart-and-Kidney-disease-prediction-Django-master\predict_risk\data_provider.py", line 20, in GetJobLibFile
return joblib.load(os.path.join(dir, filepath))
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\joblib\numpy_pickle.py", line 587, in load
obj = _unpickle(fobj, filename, mmap_mode)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\joblib\numpy_pickle.py", line 506, in _unpickle
obj = unpickler.load()
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36\lib\pickle.py", line 1050, in load
dispatchkey[0]

Exception Type: KeyError at /predict/15
Exception Value: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant