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/cli.py from Zipeng365/WISP: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/Zipeng365/WISP/resolve/main/src/wisp/cli.py
- Command line
-
hf download hf://Zipeng365/WISP/src/wisp/cli.py
-
curl -L -o cli.py https://huggingface.co/Zipeng365/WISP/resolve/main/src/wisp/cli.py
1.15 kB
| """``wisp`` command line: the 0.2.0 commands plus ``wisp recipes``. | |
| ``wisp list``, ``inventory``, ``predict``, ``evaluate``, ``family-fit``, ``select-fit`` and | |
| ``search`` are the 0.2.0 commands of ``wisp_release.cli`` (unchanged). ``wisp recipes`` | |
| prints the recipe catalog as JSON lines. | |
| """ | |
| from __future__ import annotations | |
| import json | |
| import sys | |
| def _recipes(argv): | |
| import argparse | |
| from wisp import recipes | |
| parser = argparse.ArgumentParser(prog="wisp recipes", description="Print the recipe catalog") | |
| parser.add_argument("--source", choices=("fixed", "cis_subset", "search_best")) | |
| args = parser.parse_args(argv) | |
| for rid, recipe in recipes._catalog().items(): | |
| if args.source is None or recipe.source == args.source: | |
| print(json.dumps(recipe.describe(), sort_keys=True)) | |
| return 0 | |
| def main(argv: list[str] | None = None) -> int: | |
| argv = list(sys.argv[1:] if argv is None else argv) | |
| if argv and argv[0] == "recipes": | |
| return _recipes(argv[1:]) | |
| from wisp_release.cli import main as release_main | |
| return release_main(argv) | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |