zikry009 / Diabetes_Prediction_Portal

Diabetes Prediction is my weekend practice project. In this I used KNN Neighbors Classifier to trained model that is used to predict the positive or negative result. Given set of inputs are BMI(Body Mass Index),BP(Blood Pressure),Glucose Level,Insulin Level based on this features it predict whether you have diabetes or not.
22 stars 12 forks source link

Error when entering value and submit #2

Open naukrii opened 4 years ago

naukrii commented 4 years ago

Kindly help.

After running app.py ,i can load the webpage but once i enter all vaue and submit. i get following error in browser. Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

In cmd prompt. i get this error (attached the screenshot) ValueError: Buffer dtype mismatch, expected 'ITYPE_t' but got 'long long'

error

Aniskonig commented 4 years ago

if you sloved the problem please tell me

rajvee17 commented 4 years ago

Kindly help.

After running app.py ,i can load the webpage but once i enter all vaue and submit. i get following error in browser. Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

In cmd prompt. i get this error (attached the screenshot) ValueError: Buffer dtype mismatch, expected 'ITYPE_t' but got 'long long'

error

For the internal server error, you can change the port by writing " app.run(port=7000)" And for ValueError: Buffer dtype mismatch, expected 'ITYPE_t' but got 'long long' , you have to check the version of the scikit-learn library. I have used version "0.20.0" and it worked I have used : pycharm python 3.7(64 bit) numpy, pandas,flask latest version scikit-learn (.20.0 version)