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/267dcd2f3408dc367d2ed860ed80193cc010b44c/types.py
- Command line
-
hf download hf://PDAP/inference_prototype_test@267dcd2f3408dc367d2ed860ed80193cc010b44c/types.py
-
curl -L -o types.py https://huggingface.co/PDAP/inference_prototype_test/resolve/267dcd2f3408dc367d2ed860ed80193cc010b44c/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: | |
| ... | |