The web app which is used to remove the dependencies on the doctors, to help out the poor and helpless people with the normal medical checkup and to help people avoid paying huge amount to doctor unnecessarily. This project is made with Django, machine learning algorithms and deep learning (ANN and CNN).
@jeremymikindi , This occurs due to the scikit-learn version. I have updated the requirements.txt file. Please pull the master branch and re-install the requirements
When testing modules, for example diabete
The below error is occuring
`Environment:
Request Method: POST Request URL: http://127.0.0.1:8000/patient/diabetes/
Django Version: 2.2.28 Python Version: 3.10.12 Installed Applications: ['widget_tweaks', 'rest_framework', 'chat', 'appointment', 'patient', 'doctor', 'Health', 'roleadmin', 'crispy_forms', 'api', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'chat.middleware.ActiveUserMiddleware']
Traceback:
File "/home/jeremie/.local/lib/python3.10/site-packages/django/core/handlers/exception.py" in inner
File "/home/jeremie/.local/lib/python3.10/site-packages/django/core/handlers/base.py" in _get_response
File "/home/jeremie/.local/lib/python3.10/site-packages/django/core/handlers/base.py" in _get_response
File "/home/jeremie/.local/lib/python3.10/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
File "/mnt/c/E-Health-Care-master/patient/patient_decorators.py" in wrapper_func
File "/mnt/c/E-Health-Care-master/patient/views.py" in diabetes
File "/mnt/c/E-Health-Care-master/patient/Diabetes.py" in pred_diabetes
File "_tree.pyx" in sklearn.tree._tree.Tree.setstate
File "_tree.pyx" in sklearn.tree._tree._check_node_ndarray
Exception Type: ValueError at /patient/diabetes/ Exception Value: node array from the pickle has an incompatible dtype:
`
Please help resolve