bpllib.TemplateTransformer¶
- class bpllib.TemplateTransformer(demo_param='demo')[source]¶
An example transformer that returns the element-wise square root.
For more information regarding how to build your own transformer, read more in the User Guide.
- Parameters:
- demo_paramstr, default=’demo’
A parameter used for demonstation of how to pass and store paramters.
- Attributes:
- n_features_int
The number of features of the data passed to
fit().
- fit(X, y=None)[source]¶
A reference implementation of a fitting function for a transformer.
- Parameters:
- X{array-like, sparse matrix}, shape (n_samples, n_features)
The training input samples.
- yNone
There is no need of a target in a transformer, yet the pipeline API requires this parameter.
- Returns:
- selfobject
Returns self.