Instructions to use Asiya-Mohammed/random-forest-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Asiya-Mohammed/random-forest-model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Asiya-Mohammed/random-forest-model", "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
Stroke Prediction Random Forest Model
This project uses a Random Forest model to predict the risk of strokes based on user input features. The model has been deployed on Hugging Face for seamless integration.
Features
- Predicts the likelihood of a stroke based on various health parameters.
- Fast and efficient model, hosted on Hugging Face.
Input Features
The model expects the following inputs:
age: Patient's age (numeric)age_group: Patients age group child(Less than 18 ),Young Adult (18-34 ), Adult (35-59 ), Senior (60 and over )hypertension: 1 if the patient has hypertension, else 0heart_disease: 1 if the patient has heart disease, else 0avg_glucose_level: Average glucose level in the bloodbmi: Body Mass Indexgender: Male/Female/Otherever_married: Yes/Nowork_type: Type of work (e.g., Private, Self-employed, never_worked)Residence_type: Urban/Ruralsmoking_status: Smoking habits (e.g., never smoked, formerly smoked)
Model Deployment
The model has been deployed on the Hugging Face Hub. You can access it via my repo Random Forest Model for Stroke Prediction.
- Downloads last month
- -