Instructions to use RealFishSam/DVAE26-proj with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use RealFishSam/DVAE26-proj with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("RealFishSam/DVAE26-proj", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -41,11 +41,20 @@ pip install -r requirements.txt
|
|
| 41 |
```
|
| 42 |
|
| 43 |
### 2. Run Prediction Script
|
| 44 |
-
We provide a standalone script `predict.py` that loads the model and runs a prediction
|
|
|
|
|
|
|
| 45 |
```bash
|
| 46 |
python predict.py
|
| 47 |
```
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### 3. Usage in Python
|
| 50 |
```python
|
| 51 |
import pickle
|
|
|
|
| 41 |
```
|
| 42 |
|
| 43 |
### 2. Run Prediction Script
|
| 44 |
+
We provide a standalone script `predict.py` that loads the model and runs a prediction.
|
| 45 |
+
|
| 46 |
+
**Basic Usage (Default Sample):**
|
| 47 |
```bash
|
| 48 |
python predict.py
|
| 49 |
```
|
| 50 |
|
| 51 |
+
**Custom Input Usage:**
|
| 52 |
+
You can pass patient data as command-line arguments:
|
| 53 |
+
```bash
|
| 54 |
+
python predict.py --age 65 --bmi 28.5 --hypertension 1 --gender Female
|
| 55 |
+
```
|
| 56 |
+
Use `python predict.py --help` to see all available options.
|
| 57 |
+
|
| 58 |
### 3. Usage in Python
|
| 59 |
```python
|
| 60 |
import pickle
|