A Machine Learning project that helps doctors detect whether patients need treatment or not based on the Blood Analysis Dataset
.
Clone the repository or download the ZIP file from the following Git link:
https://github.com/Vishal4198/DocAssist
Ensure your project has the following folder structure:
- Open the
sourcecode.ipynb
file from thenotebooks
folder. - Run each cell in the Jupyter Notebook or VScode.
After executing sourcecode.ipynb
, the model.joblib
file will be created inside the models
folder, which is the trained model for this project.
- Open the project in VS Code.
- Locate
app.py
, which contains the Flask code for designing the user interface and uses HTML for webpage design. - Before running the
app.y
ensuremodel.joblib
is present in the models directory and is updated. - Run
app.py
in VS Code. - The terminal at the bottom of the VS Code screen will show a local connection for the webpage.
- Hold
Ctrl
+click
to open the webpage in your default browser or you can copy and paste it your desired browser. - You can now see the user interface for entering the requested data. After inputting the data, click "Submit" to predict the output using the pre-trained model
model.joblib
. - Once you finish.
Ctrl
+C
on the terminal to stop the applicationapp.py
.
- Open the Command Prompt or PowerShell from the project folder.
- Before running the
app.y
ensuremodel.joblib
is present in the models directory and is updated. - Run the following command:
python app.py
- After running the command, a local connection link for the webpage will be displayed. Click on the link to open the webpage in your default browser or copy and paste it your desired browser. Input your data, and the output will be predicted using the pre-trained model.
- Once done
Ctrl
+C
on the terminal to stop the applicationapp.py
.
HAEMATOCRIT | HAEMOGLOBINS | ERYTHROCYTE | LEUCOCYTE | THROMBOCYTE | MCH | MCHC | MCV | AGE | SEX |
---|---|---|---|---|---|---|---|---|---|
48.5 | 16.5 | 5.63 | 8 | 299 | 29.3 | 34 | 86.1 | 29 | M |
31.7 | 10.9 | 3.84 | 15.1 | 45 | 27.3 | 33.1 | 82.6 | 71 | M |
HAEMATOCRIT | HAEMOGLOBINS | ERYTHROCYTE | LEUCOCYTE | THROMBOCYTE | MCH | MCHC | MCV | AGE | SEX |
---|---|---|---|---|---|---|---|---|---|
35.4 | 11.9 | 3.9 | 5.3 | 243 | 30.5 | 33.6 | 90.8 | 35 | F |
31.7 | 10.6 | 3.74 | 8.5 | 268 | 28.3 | 33.4 | 84.8 | 24 | F |