Instructions to use DarkSting/tea_backend with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use DarkSting/tea_backend with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://DarkSting/tea_backend") - Notebooks
- Google Colab
- Kaggle
Download model/model_metadata.json from DarkSting/tea_backend: direct link, hf CLI and curl.
- Browser
- Download file 1.39 kB
-
https://huggingface.co/DarkSting/tea_backend/resolve/main/model/model_metadata.json
- Command line
-
hf download hf://DarkSting/tea_backend/model/model_metadata.json
-
curl -L -o model_metadata.json https://huggingface.co/DarkSting/tea_backend/resolve/main/model/model_metadata.json
1.39 kB
| { | |
| "target": "auction_price_rs_per_kg", | |
| "cat_cols": [ | |
| "grade", | |
| "season" | |
| ], | |
| "num_cols": [ | |
| "rainfall_mm", | |
| "temperature_c", | |
| "production_kg", | |
| "exports_kg", | |
| "fuel_index", | |
| "inflation_yoy_pct", | |
| "price_lag_1w_rs", | |
| "price_lag_4w_rs", | |
| "price_lag_12w_rs", | |
| "price_lag_48w_rs", | |
| "price_rollmean_4w_rs", | |
| "price_rollmean_12w_rs", | |
| "price_rollmean_48w_rs", | |
| "month_sin", | |
| "month_cos", | |
| "week_in_month", | |
| "month", | |
| "year" | |
| ], | |
| "report_user_inputs": { | |
| "required": [ | |
| "grade" | |
| ], | |
| "optional_overrides": [ | |
| "rainfall_mm", | |
| "temperature_c", | |
| "production_kg", | |
| "exports_kg", | |
| "fuel_index", | |
| "inflation_yoy_pct" | |
| ], | |
| "seasonality": "season (auto from date, can override)" | |
| }, | |
| "internal_auto_features": [ | |
| "price_lag_1w_rs", | |
| "price_lag_4w_rs", | |
| "price_lag_12w_rs", | |
| "price_lag_48w_rs", | |
| "price_rollmean_4w_rs", | |
| "price_rollmean_12w_rs", | |
| "price_rollmean_48w_rs", | |
| "month_sin", | |
| "month_cos", | |
| "week_in_month", | |
| "month", | |
| "year" | |
| ], | |
| "validation_metrics": { | |
| "MAE": 236.42255651770014, | |
| "RMSE": 264.914076185626, | |
| "R2": -1.446572736879666, | |
| "MAPE_%": 14.561939423976408 | |
| }, | |
| "test_metrics": { | |
| "MAE": 235.94937865586834, | |
| "RMSE": 270.28251148948794, | |
| "R2": -0.43772939567736135, | |
| "MAPE_%": 17.654617690880166 | |
| } | |
| } |