skcriteria.pipeline module
Deprecated since version 0.9: The skcriteria.pipeline module is deprecated and will be removed in a future version.
Please use skcriteria.pipelines instead.
The ‘skcriteria.pipeline’ module is deprecated since 0. and will be removed in 1.0 Use ‘skcriteria.pipelines’ instead.
- class skcriteria.pipeline.SKCPipeline(steps)[source]
Bases:
SKCMethodABCPipeline of transforms with a final decision-maker.
Sequentially apply a list of transforms and a final decisionmaker. Intermediate steps of the pipeline must be ‘transforms’, that is, they must implement transform method.
The final decision-maker only needs to implement evaluate.
The purpose of the pipeline is to assemble several steps that can be applied together while setting different parameters.
- Parameters:
steps (list) – List of (name, transform) tuples (implementing evaluate/transform) that are chained, in the order in which they are chained, with the last object an decision-maker.
See also
skcriteria.pipeline.mkpipeConvenience function for simplified pipeline construction.
- property steps
List of steps of the pipeline.
- property named_steps
Dictionary-like object, with the following attributes.
Read-only attribute to access any step parameter by user given name. Keys are step names and values are steps parameters.
- skcriteria.pipeline.mkpipe(*steps)[source]
Construct a Pipeline from the given transformers and decision-maker.
This is a shorthand for the SKCPipeline constructor; it does not require, and does not permit, naming the estimators. Instead, their names will be set to the lowercase of their types automatically.
- Parameters:
*steps (list of transformers and decision-maker object) – List of the scikit-criteria transformers and decision-maker that are chained together.
- Returns:
p – Returns a scikit-criteria
SKCPipelineobject.- Return type: