Upload initial model files
Browse files- README.md +59 -3
- synthetic_v2_disease_mappings.joblib +3 -0
- synthetic_v2_pipeline.joblib +3 -0
- synthetic_v2_target_encoders.joblib +3 -0
README.md
CHANGED
|
@@ -1,3 +1,59 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Streamlit ML Frontend
|
| 2 |
+
|
| 3 |
+
This project is a Streamlit application that serves as the front end for a machine learning model designed to predict medical outcomes based on synthetic patient data. The application allows users to input patient features and receive predictions along with relevant mappings.
|
| 4 |
+
|
| 5 |
+
## Project Structure
|
| 6 |
+
|
| 7 |
+
```
|
| 8 |
+
streamlit-ml-frontend
|
| 9 |
+
βββ src
|
| 10 |
+
β βββ app.py # Main entry point for the Streamlit application
|
| 11 |
+
β βββ utils.py # Utility functions for data processing and model interaction
|
| 12 |
+
βββ requirements.txt # List of dependencies for the project
|
| 13 |
+
βββ README.md # Documentation for the project
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
## Installation
|
| 17 |
+
|
| 18 |
+
To set up the project, follow these steps:
|
| 19 |
+
|
| 20 |
+
1. Clone the repository:
|
| 21 |
+
```
|
| 22 |
+
git clone <repository-url>
|
| 23 |
+
cd streamlit-ml-frontend
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
2. Create a virtual environment (optional but recommended):
|
| 27 |
+
```
|
| 28 |
+
python -m venv venv
|
| 29 |
+
source venv/bin/activate # On Windows use `venv\Scripts\activate`
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
3. Install the required dependencies:
|
| 33 |
+
```
|
| 34 |
+
pip install -r requirements.txt
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Running the Application
|
| 38 |
+
|
| 39 |
+
To run the Streamlit application, execute the following command in your terminal:
|
| 40 |
+
|
| 41 |
+
```
|
| 42 |
+
streamlit run src/app.py
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
This will start the Streamlit server and open the application in your default web browser.
|
| 46 |
+
|
| 47 |
+
## Usage
|
| 48 |
+
|
| 49 |
+
1. Input the required patient features in the provided fields.
|
| 50 |
+
2. Click on the "Predict" button to receive predictions from the machine learning model.
|
| 51 |
+
3. The results will be displayed on the screen, including the predicted disease and any relevant mappings.
|
| 52 |
+
|
| 53 |
+
## Model Information
|
| 54 |
+
|
| 55 |
+
The underlying machine learning model has been trained on synthetic medical data and is designed to provide predictions based on the input features. Please note that this model is for development and testing purposes only and should not be used for real medical decisions.
|
| 56 |
+
|
| 57 |
+
## License
|
| 58 |
+
|
| 59 |
+
This project is licensed under the MIT License. See the LICENSE file for more details.
|
synthetic_v2_disease_mappings.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd569bb375c31fdf8882aedb2b71b8995dd95682db82a603f3419221d194412a
|
| 3 |
+
size 4184
|
synthetic_v2_pipeline.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a20461a135a3dbfc6d5ee36f0f01a6b9be43b24bb14f12b17ee15ba3da5a87f
|
| 3 |
+
size 65824674
|
synthetic_v2_target_encoders.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30f86ca168310c108aecadfbc5dfbbedc2904ccb46c141f7b3cfec6d81babf0f
|
| 3 |
+
size 5771
|