Views
No views yet
Pipeline containing:ColumnTransformer handling categorical features via an integer-safe OrdinalEncoder(handle_unknown='use_encoded_value', unknown_value=-1).RandomForestClassifier initialized with 100 estimators and optimized depth constraints to handle complex behavioral patterns.return_rate_pct (Customer's overall return velocity)customer_support_contacts (Frequency of escalations)days_to_return (Average window before an item is shipped back)1import joblib
2from huggingface_hub import hf_hub_download
3
4# 1. Download the frozen pipeline from this Hub repository
5model_path = hf_hub_download(
6 repo_id="sarveshchhetri/ecommerce-return-abuse-detector",
7 filename="model.joblib"
8)
9
10# 2. Load the pipeline directly into your local script
11pipeline = joblib.load(model_path)
12
13# The pipeline is fully ready to accept raw input data and execute predictions!