Instructions to use AaaaaAa5657/tourism-rf-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use AaaaaAa5657/tourism-rf-model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("AaaaaAa5657/tourism-rf-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
Tourism Purchase Prediction โ Random Forest
Trained on the Wellness Tourism Package dataset to predict ProdTaken (binary).
Metrics (test set)
- Accuracy : 0.9328
- Precision: 0.9040
- Recall : 0.7290
- F1 : 0.8071
- ROC-AUC : 0.9724
Hyper-parameters
{'n_estimators': 400, 'min_samples_split': 5, 'min_samples_leaf': 1, 'max_features': 'sqrt', 'max_depth': None, 'bootstrap': False}
Usage
import joblib, gzip
with gzip.open('best_model.pkl.gz', 'rb') as f:
model = joblib.load(f)
prediction = model.predict(X_new)
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support