Instructions to use Zipeng365/WISP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Zipeng365/WISP with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Zipeng365/WISP", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Download src/wisp/metrics.py from Zipeng365/WISP: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/Zipeng365/WISP/resolve/main/src/wisp/metrics.py
- Command line
-
hf download hf://Zipeng365/WISP/src/wisp/metrics.py
-
curl -L -o metrics.py https://huggingface.co/Zipeng365/WISP/resolve/main/src/wisp/metrics.py
440 Bytes
| """The frozen paper score definitions (``wisp_release.scoring``) under the ``wisp`` namespace. | |
| ``score(y_true, y_pred, n_classes)`` returns macro-F1 (classes present in truth or | |
| prediction), accuracy, balanced accuracy, full-vocabulary worst-class F1 and the confusion | |
| matrix, for integer labels on the global vocabulary ``0..n_classes-1``. | |
| """ | |
| from wisp_release.scoring import from_confusion, score | |
| __all__ = ["score", "from_confusion"] | |