cast¶
- probly.transformation.cast(base: T) T[source]¶
Return a predictor unchanged while optionally registering its predictor type.
- Parameters:
base – Predictor to return unchanged.
- Returns:
The unchanged predictor. If
predictor_typeis passed to this method, the returned predictor is registered as that type.