skcriteria.core.methods module

Core functionalities of scikit-criteria.

class skcriteria.core.methods.SKCMethodABC[source]

Bases: object

Base class for all class in scikit-criteria.


All estimators should specify:

  • _skcriteria_dm_type: The type of the decision maker.

  • _skcriteria_parameters: Availebe parameters.

  • _skcriteria_abstract_class: If the class is abstract.

If the class is abstract the user can ignore the other two attributes.


Return the parameters of the method as dictionary.


Return a deep copy of the current Object..

This method is also useful for manually modifying the values of the object.


kwargs – The same parameters supported by object constructor. The values provided replace the existing ones in the object to be copied.

Return type

A new object.

class skcriteria.core.methods.SKCTransformerABC[source]

Bases: skcriteria.core.methods.SKCMethodABC

Abstract class for all transformer in scikit-criteria.


Perform transformation on dm.


dm ( – The decision matrix to transform.


Transformed decision matrix.

Return type

class skcriteria.core.methods.SKCMatrixAndWeightTransformerABC(target)[source]

Bases: skcriteria.core.methods.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.