lale.lib.lale.tee module¶
- class lale.lib.lale.tee.Tee(*args, _lale_trained=False, _lale_impl=None, **kwargs)¶
Bases:
TrainedIndividualOp
Passes the data through unchanged (like NoOp), first giving it to an listener. Useful for debugging and logging.Similar to Observing, which provides a higher order operator with more comprehensive abilities.
This documentation is auto-generated from JSON schemas.
- Parameters
listener (union type, optional, not for optimizer) –
callable
A callable (lambda, method, class that implements __call__, …)that accepts to arguments: X and y (which may be None). When transformis called on this operator, the callable will be passed the givenX and y values
or None
No listener. Causes this operator to behave like NoOp.
- transform(X, y=None)¶
Transform the data.
- Parameters
X (Any) – Features; no restrictions on data type.
- Returns
result – Features; no restrictions on data type.
- Return type
Any