Instructions to use Delower/herg-best-deployment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use Delower/herg-best-deployment 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://Delower/herg-best-deployment") - Notebooks
- Google Colab
- Kaggle
Download selection.json from Delower/herg-best-deployment: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/Delower/herg-best-deployment/resolve/main/selection.json
- Command line
-
hf download hf://Delower/herg-best-deployment/selection.json
-
curl -L -o selection.json https://huggingface.co/Delower/herg-best-deployment/resolve/main/selection.json
1.83 kB
| { | |
| "protocol": "scaffold", | |
| "tasks": { | |
| "cls": { | |
| "metric": "val MCC", | |
| "tree_val_scores": { | |
| "xgb0": 0.5146739288059197, | |
| "xgb1": 0.5333868265371139, | |
| "xgb2": 0.5229651322593131, | |
| "et0": 0.5275331585958475, | |
| "et1": 0.5445124395161229, | |
| "et2": 0.5393742537985894 | |
| }, | |
| "best_tree": "et1", | |
| "best_tree_params": { | |
| "n_estimators": "600", | |
| "max_features": "0.1", | |
| "min_samples_leaf": "1" | |
| }, | |
| "best_tree_family": "et", | |
| "ltn_val_score": 0.5343947191346718, | |
| "ltn_best_epoch": 5, | |
| "ensemble_weight_on_tree": 0.3, | |
| "ensemble_val_score": 0.572916114810234, | |
| "candidate": "ensemble", | |
| "candidate_val_score": 0.572916114810234, | |
| "all_options": { | |
| "tree": 0.5445124395161229, | |
| "ltn": 0.5343947191346718, | |
| "ensemble": 0.572916114810234 | |
| } | |
| }, | |
| "reg": { | |
| "metric": "val RMSE", | |
| "tree_val_scores": { | |
| "xgb0": 0.6784875707586886, | |
| "xgb1": 0.6754303593923823, | |
| "xgb2": 0.6731428934371697, | |
| "et0": 0.6871135004974613, | |
| "et1": 0.6751806548646565, | |
| "et2": 0.6757366349983194 | |
| }, | |
| "best_tree": "xgb2", | |
| "best_tree_params": { | |
| "n_estimators": "1400", | |
| "learning_rate": "0.02", | |
| "max_depth": "7", | |
| "subsample": "0.9", | |
| "colsample_bytree": "0.3" | |
| }, | |
| "best_tree_family": "xgb", | |
| "ltn_val_score": 0.6696066899210678, | |
| "ltn_best_epoch": 26, | |
| "ensemble_weight_on_tree": 0.5, | |
| "ensemble_val_score": 0.6448816698940266, | |
| "candidate": "ensemble", | |
| "candidate_val_score": 0.6448816698940266, | |
| "all_options": { | |
| "tree": 0.6731428934371697, | |
| "ltn": 0.6696066899210678, | |
| "ensemble": 0.6448816698940266 | |
| } | |
| } | |
| } | |
| } |