critical12/tourism-dataset
Viewer • Updated • 4.13k • 3
How to use critical12/tourism-purchase-predictor-rf with Scikit-learn:
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
hf_hub_download("critical12/tourism-purchase-predictor-rf", "sklearn_model.joblib")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.htmlThis repository contains a tuned RandomForestClassifier for predicting ProdTaken (purchase of the tourism package).
import joblib
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(repo_id="critical12/tourism-purchase-predictor-rf", filename="best_model.joblib")
model = joblib.load(model_path)
# model is a sklearn Pipeline: model.predict(X) or model.predict_proba(X)