simpleml.pipelines.external_pipelines module¶
Wrapper class for a pickleable pipeline of a series of transformers
-
class
simpleml.pipelines.external_pipelines.
DefaultPipeline
[source]¶ Bases:
collections.OrderedDict
Use default dictionary behavior but add wrapper methods for extended functionality
-
fit_transform
(X, y=None, **kwargs)[source]¶ Iterate through each transformation step and apply fit and transform
-
get_feature_names
(feature_names)[source]¶ Iterate through each transformer and return list of resulting features starts with empty list by default but can pass in dataset as starting point to guide transformations
Parameters: feature_names – list of initial feature names before transformations Type: list
-
get_params
(params_only=None, **kwargs)[source]¶ Iterate through transformers and return parameters
Parameters: params_only – Unused parameter to align signature with Sklearn version
-
-
class
simpleml.pipelines.external_pipelines.
SklearnPipeline
(steps, *, memory=None, verbose=False)[source]¶ Bases:
sklearn.pipeline.Pipeline
Use default sklearn behavior but add wrapper methods for extended functionality
-
get_feature_names
(feature_names)[source]¶ Iterate through each transformer and return list of resulting features starts with empty list by default but can pass in dataset as starting point to guide transformations
Parameters: feature_names – list of initial feature names before transformations Type: list
-