skcriteria.preprocessing._preprocessing_base module

Core functionalities to create transformers.

class skcriteria.preprocessing._preprocessing_base.SKCTransformerABC[source]

Bases: SKCMethodABC

Abstract class for all transformer in scikit-criteria.

transform(dm)[source]

Perform transformation on dm.

Parameters

dm (skcriteria.data.DecisionMatrix) – The decision matrix to transform.

Returns

Transformed decision matrix.

Return type

skcriteria.data.DecisionMatrix

class skcriteria.preprocessing._preprocessing_base.SKCMatrixAndWeightTransformerABC(target)[source]

Bases: SKCTransformerABC

Transform weights and matrix together or independently.

The Transformer that implements this abstract class can be configured to transform weights, matrix or both so only that part of the DecisionMatrix is altered.

This abstract class require to redefine _transform_weights and _transform_matrix, instead of _transform_data.

property target

Determine which part of the DecisionMatrix will be transformed.