Git Product home page Git Product logo

anuj-glitch / disease-prediction-using-django-and-machine-learning Goto Github PK

View Code? Open in Web Editor NEW
241.0 5.0 76.0 6.22 MB

**A end to end project - Powered by Django and Machine Learning** - This project aims to provide a web platform to predict the occurrences of disease on the basis of various symptoms. The user can select various symptoms and can find the diseases and consult to the doctor online.

License: Apache License 2.0

Python 3.20% HTML 6.47% CSS 42.94% JavaScript 15.40% Less 15.89% SCSS 16.09%
disease-prediction symptoms machine-learning django django-application

disease-prediction-using-django-and-machine-learning's Introduction

General Disease Prediction based on symptoms provided by patient- powered by Django & Machine Learning

How To Use This

First make sure PostgreSQL and pgadmin is install in your system. then you have to manually create a DB instance on PostgreSQL named "predico", better use PgAdmin for that. make a new environment(recommended) and run...

  • Run pip install -r requirements.txt to install dependencies
  • Run python manage.py makemigrations
  • Run python manage.py migrate
  • Run python manage.py runserver
  • Navigate to http://127.0.0.1:8000/ in your browser

Dataset used -

https://www.kaggle.com/neelima98/disease-prediction-using-machine-learning

Some Sceenshots of This Webapp -

Go to the Readme.pdf file for detailed information about the project & screenshots.

and if you like this project, do give it a "Star" Thank you..

disease-prediction-using-django-and-machine-learning's People

Contributors

anuj-glitch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

disease-prediction-using-django-and-machine-learning's Issues

python manage.py makemigrations

While making migrations it returns 'No changes detected'. Could you please tell us how to run your code
Please reply asap. Thanks!

Database connection

is there any need to be changed to get connected to the database or it gets connected automatically?

IDE

Can I use on Pychram and how to use it ?

Database connection

Whether we need to create tables of database explicitly or it will create automatically ?

Thank you sir . I used this project for my post graduation

Thank you sir . I used this project for my post graduation

On Mon, Feb 1, 2021 at 12:52 PM Anuj [email protected] wrote:

You can create a new admin username using Django's - create superuser
commands


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#3 (comment),
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASQI7TNM5S2ZIRWMJHMB56TS4ZJB3ANCNFSM4RCA4GPQ
.

Originally posted by @sevenhills87 in #3 (comment)

Unable to run this project, always getting errors while installing the requirements

Please can anyone who have used this project before help me out how I can successfully run this project. I have tried following the steps and instructions but I keep getting errors. I will be very grateful for your help.. below is the errors I keep getting

`PS C:\Users\frank1\Downloads\2023 Sch Projects\Disease Prediction\third one\Disease-Prediction-using-Django-and-machine-learning-master\My environs> pip install -r requirements.txt
Collecting django==3.0.3 (from -r requirements.txt (line 2))
Using cached Django-3.0.3-py3-none-any.whl (7.5 MB)
Collecting joblib==0.14.1 (from -r requirements.txt (line 3))
Using cached joblib-0.14.1-py2.py3-none-any.whl (294 kB)
Collecting scikit-learn==0.21.3 (from -r requirements.txt (line 4))
Using cached scikit-learn-0.21.3.tar.gz (12.2 MB)
Preparing metadata (setup.py) ... done
Collecting psycopg2==2.8.4 (from -r requirements.txt (line 5))
Using cached psycopg2-2.8.4.tar.gz (377 kB)
Preparing metadata (setup.py) ... done
Collecting pytz (from django==3.0.3->-r requirements.txt (line 2))
Using cached pytz-2023.3-py2.py3-none-any.whl (502 kB)
Collecting sqlparse>=0.2.2 (from django==3.0.3->-r requirements.txt (line 2))
Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
Collecting asgiref~=3.2 (from django==3.0.3->-r requirements.txt (line 2))
Using cached asgiref-3.7.2-py3-none-any.whl (24 kB)
Requirement already satisfied: numpy>=1.11.0 in c:\users\frank1\anaconda3\envs\predictionprojectshps\lib\site-packages (from scikit-learn==0.21.3->-r requirements.txt (line 4)) (1.25.0)
Requirement already satisfied: scipy>=0.17.0 in c:\users\frank1\anaconda3\envs\predictionprojectshps\lib\site-packages (from scikit-learn==0.21.3->-r requirements.txt (line 4)) (1.11.1)
Building wheels for collected packages: scikit-learn, psycopg2
Building wheel for scikit-learn (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [47 lines of output]
Partial import of sklearn during the build process.
C:\Users\frank1\AppData\Local\Temp\pip-install-ja58v9pl\scikit-learn_01a97c41f93f40139a8bf256c7bc75f2\setup.py:122: DeprecationWarning:

    `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
    of the deprecation of `distutils` itself. It will be removed for
    Python >= 3.12. For older Python versions it will remain present.
    It is recommended to use `setuptools < 60.0` for those Python versions.
    For more details, see:
      https://numpy.org/devdocs/reference/distutils_status_migration.html
 
 
    from numpy.distutils.command.build_ext import build_ext  # noqa
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\frank1\AppData\Local\Temp\pip-install-ja58v9pl\scikit-learn_01a97c41f93f40139a8bf256c7bc75f2\setup.py", line 290, in <module>
      setup_package()
    File "C:\Users\frank1\AppData\Local\Temp\pip-install-ja58v9pl\scikit-learn_01a97c41f93f40139a8bf256c7bc75f2\setup.py", line 286, in setup_package
      setup(**metadata)
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\core.py", line 135, in setup
      config = configuration()
               ^^^^^^^^^^^^^^^
    File "C:\Users\frank1\AppData\Local\Temp\pip-install-ja58v9pl\scikit-learn_01a97c41f93f40139a8bf256c7bc75f2\setup.py", line 174, in configuration
      config.add_subpackage('sklearn')
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\misc_util.py", line 1050, in add_subpackage
      config_list = self.get_subpackage(subpackage_name, subpackage_path,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\misc_util.py", line 1016, in get_subpackage
      config = self._get_configuration_from_setup_py(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\misc_util.py", line 958, in _get_configuration_from_setup_py
      config = setup_module.configuration(*args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\frank1\AppData\Local\Temp\pip-install-ja58v9pl\scikit-learn_01a97c41f93f40139a8bf256c7bc75f2\sklearn\setup.py", line 62, in configuration
      config.add_subpackage('utils')
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\misc_util.py", line 1050, in add_subpackage
      config_list = self.get_subpackage(subpackage_name, subpackage_path,
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\misc_util.py", line 1016, in get_subpackage
      config = self._get_configuration_from_setup_py(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\numpy\distutils\misc_util.py", line 958, in _get_configuration_from_setup_py
      config = setup_module.configuration(*args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\frank1\AppData\Local\Temp\pip-install-ja58v9pl\scikit-learn_01a97c41f93f40139a8bf256c7bc75f2\sklearn\utils\setup.py", line 8, in configuration
      from Cython import Tempita
  ModuleNotFoundError: No module named 'Cython'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scikit-learn
Running setup.py clean for scikit-learn
Building wheel for psycopg2 (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [36 lines of output]
C:\Users\frank1\anaconda3\envs\predictionprojectSHPS\Lib\site-packages\setuptools\config\setupcfg.py:293: _DeprecatedConfig: Deprecated config in setup.cfg
!!

          ********************************************************************************
          The license_file parameter is deprecated, use license_files instead.
 
          By 2023-Oct-30, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
 
          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************
 
  !!
    parsed = self.parsers.get(option_name, lambda x: x)(value)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-311
  creating build\lib.win-amd64-cpython-311\psycopg2
  copying lib\compat.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\errorcodes.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\errors.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\extensions.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\extras.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\pool.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\sql.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\tz.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\_ipaddress.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\_json.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\_lru_cache.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\_range.py -> build\lib.win-amd64-cpython-311\psycopg2
  copying lib\__init__.py -> build\lib.win-amd64-cpython-311\psycopg2
  running build_ext
  building 'psycopg2._psycopg' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build scikit-learn psycopg2
ERROR: Could not build wheels for scikit-learn, psycopg2, which is required to install pyproject.toml-based projects`

database

i created a db name as predicto but idk why the data is not storing in db

Algorithm

In which file i can check the algorithm of Machine learning?

System check identified 5 issues (0 silenced). Pls check

          System check identified 5 issues (0 silenced).

Exception in thread django-main-thread:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/db/backends/base/base.py", line 230, in ensure_connection
self.connect()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/utils/asyncio.py", line 25, in inner
return func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/db/backends/base/base.py", line 211, in connect
self.connection = self.get_new_connection(conn_params)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/utils/asyncio.py", line 25, in inner
return func(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/django/db/backends/postgresql/base.py", line 199, in get_new_connection
connection = Database.connect(**conn_params)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/psycopg2/init.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (::1), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?

Originally posted by @Manojkumar0308 in #3 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.