Downloads · 30 days
0
poudel/fuel-burn-predictor
fuel-burn-predictor is a tabular regression model from poudel. Use it for the tabular regression task on the model card, and read the license before you ship it in a product. It is set up for scikit-learn. The card lists the license as apache-2.0.
This is a RandomForestRegressor model designed to predict fuel burn in kilograms based on three key features: - Truck ID: Identifier of the truck (e.g., TruckID). - Kms Driven: The number of kilometers the truck has d…
Downloads · 30 days
0
Access
Public
Updated Sep 28, 2024
Repo size
17.8 MB
Likes
0
Public
Click a slice to open those files.
.pkl17.8 MB · 100%
From the Hugging Face model README
This is a RandomForestRegressor model designed to predict fuel burn in kilograms based on three key features:
Truck_ID).The model is trained using historical data of trucks, which includes fuel consumption and distances driven. It predicts fuel consumption (in kilograms) given the truck's specific parameters.
These metrics indicate that the model performs exceptionally well on the test set and can generalize to unseen data with high accuracy.
You can load this model using joblib and use it to predict fuel consumption for new truck data.
import joblib
import pandas as pd
# Load the model
model = joblib.load('fuel_burn_model.pkl')
# Example input data
input_data = pd.DataFrame({
'Truck_ID': [0], # Use the numerical representation of the Truck ID(1,2,3)
'Kms': [100000], # Kilometers driven
'Litros': [150] # Fuel consumption in liters
})
# Predict fuel burn in kilograms
predicted_fuel_burn = model.predict(input_data)
print(f"Predicted fuel burn: {predicted_fuel_burn[0]:.2f} kg")