Upload 3 files
Browse files- README.md +36 -3
- best_model.pkl +3 -0
- requirements.txt +8 -0
README.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hepatitis Prediction Model
|
| 2 |
+
|
| 3 |
+
This repository contains a machine learning model trained to predict the class (live or die) of hepatitis patients based on various clinical features.
|
| 4 |
+
|
| 5 |
+
## Model Details
|
| 6 |
+
|
| 7 |
+
The model was trained using the PyCaret library, and the best performing model was AdaBoost Classifier.
|
| 8 |
+
|
| 9 |
+
## Files
|
| 10 |
+
|
| 11 |
+
- `best_model.pkl`: The trained model file.
|
| 12 |
+
- `requirements.txt`: List of required Python packages.
|
| 13 |
+
- `README.md`: This file.
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
|
| 17 |
+
You can load and use the model for predictions using the following steps:
|
| 18 |
+
|
| 19 |
+
1. Install the required packages:
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
pip install -r requirements.txt
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
2. Load the model:
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
import joblib
|
| 29 |
+
model = joblib.load('best_model.pkl')
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
3. Make predictions on new data (assuming your data is in a pandas DataFrame named `new_data`):
|
| 33 |
+
|
| 34 |
+
```python
|
| 35 |
+
predictions = model.predict(new_data)
|
| 36 |
+
```
|
best_model.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f94d68e3700158620dd4276177aa065fa3c6d36d1100d8ed52807019b711778
|
| 3 |
+
size 56729
|
requirements.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
pandas
|
| 2 |
+
scikit-learn
|
| 3 |
+
pycaret
|
| 4 |
+
huggingface_hub
|
| 5 |
+
transformers
|
| 6 |
+
imblearn
|
| 7 |
+
seaborn
|
| 8 |
+
matplotlib
|