Download types.py from PDAP/inference_prototype_test: direct link, hf CLI and curl.
- Browser
- Download file 269 Bytes
-
https://huggingface.co/PDAP/inference_prototype_test/resolve/c0210b56cf2cd4ac6b47ed68a2286f0a112092eb/types.py
- Command line
-
hf download hf://PDAP/inference_prototype_test@c0210b56cf2cd4ac6b47ed68a2286f0a112092eb/types.py
-
curl -L -o types.py https://huggingface.co/PDAP/inference_prototype_test/resolve/c0210b56cf2cd4ac6b47ed68a2286f0a112092eb/types.py
269 Bytes
| from typing import Protocol, TypeVar | |
| X = TypeVar("X") | |
| Y = TypeVar("Y") | |
| class FitPredictor(Protocol[X, Y]): | |
| def fit(self, x: X, y: Y) -> "FitPredictor": | |
| ... | |
| def predict(self, x: X) -> Y: | |
| ... | |
| def predict_proba(self, x: X) -> Y: | |
| ... | |