Edit model card

Time Slot Prediction Model

This model predicts the preferred rescheduled delivery time slot based on historical data. It was trained using a RandomForestClassifier from scikit-learn.

Model Details

  • Model Type: RandomForestClassifier
  • Framework: scikit-learn
  • Input: User preference (categorical data)
  • Output: Predicted time slot (categorical data)

Usage

Inference

To use this model, send a POST request with the user preference to the following endpoint:

import requests

api_url = "https://api-inference.huggingface.co/models/your-username/your-model-name"
data = {
    "inputs": {
        "user_pref": "noon"  # Example input
    }
}

headers = {
    "Authorization": "Bearer YOUR_HUGGINGFACE_API_TOKEN"  # Only if the model is private
}

response = requests.post(api_url, json=data, headers=headers)
print(response.json())
Downloads last month
0
Inference API
Unable to determine this model’s pipeline type. Check the docs .