|
Download README.md from Dilipk/flask-classification-model: direct link, hf CLI and curl.
- Browser
- Download file 661 Bytes
-
https://huggingface.co/Dilipk/flask-classification-model/resolve/main/README.md
- Command line
-
hf download hf://Dilipk/flask-classification-model/README.md
-
curl -L -o README.md https://huggingface.co/Dilipk/flask-classification-model/resolve/main/README.md
661 Bytes
| # Flask Classification Model | |
| This is a classification model trained with scikit-learn. The model predicts binary classes based on four input features. | |
| ## How to Use | |
| 1. Clone the repository. | |
| 2. Install necessary libraries. | |
| 3. Run `inference.py` with your input features. | |
| Example: | |
| ```python | |
| import joblib | |
| import numpy as np | |
| # Load model and scaler | |
| model = joblib.load("classification_model.joblib") | |
| scaler = joblib.load("scaler.pkl") | |
| # Make a prediction | |
| input_features = [0.5, 1.2, -0.3, 2.0] | |
| scaled_features = scaler.transform(np.array(input_features).reshape(1, -1)) | |
| prediction = model.predict(scaled_features) | |
| print(prediction) | |