mlrl.testbed_sklearn.experiments.output.characteristics.data.matrix_feature module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Provides classes that provide access to characteristics of feature values, associated with one or several features.

class mlrl.testbed_sklearn.experiments.output.characteristics.data.matrix_feature.FeatureMatrix(dataset: TabularDataset)

Bases: object

Provides access to characteristics of feature values, associated with one or several features, that are stored in a dataset.

property feature_density: float

The feature density.

property feature_sparsity: float

The feature sparsity.

property num_examples: int

The total number of examples.

property num_features: int

The total number of features.

property num_nominal_features: int

The total number of nominal features.

property num_numerical_features: int

The total number of numerical features.

property num_ordinal_features: int

The total number of ordinal features.