mlrl.common.cython.feature_matrix module¶
@author Michael Rapp (michael.rapp.ml@gmail.com)
- class mlrl.common.cython.feature_matrix.CContiguousFeatureMatrix¶
Bases:
RowWiseFeatureMatrixA feature matrix that provides row-wise access to the feature values of examples that are stored in a C-contiguous array.
- class mlrl.common.cython.feature_matrix.ColumnWiseFeatureMatrix¶
Bases:
FeatureMatrixA feature matrix that provides column-wise access to the feature values of examples.
- class mlrl.common.cython.feature_matrix.CscFeatureMatrix¶
Bases:
ColumnWiseFeatureMatrixA feature matrix that provides column-wise access to the feature values of examples that are stored in a sparse matrix in the compressed sparse column (CSC) format.
- class mlrl.common.cython.feature_matrix.CsrFeatureMatrix¶
Bases:
RowWiseFeatureMatrixA feature matrix that provides row-wise access to the feature values of examples that are stored in a sparse matrix in the compressed sparse row (CSR) format.
- class mlrl.common.cython.feature_matrix.FeatureMatrix¶
Bases:
objectA feature matrix.
- get_num_examples() int¶
Returns the number of examples in the feature matrix.
:return The number of examples
- class mlrl.common.cython.feature_matrix.FortranContiguousFeatureMatrix¶
Bases:
ColumnWiseFeatureMatrixA feature matrix that provides column-wise access to the feature values of examples that are stored in a Fortran-contiguous array.
- class mlrl.common.cython.feature_matrix.RowWiseFeatureMatrix¶
Bases:
FeatureMatrixA feature matrix that provides row-wise access to the feature values of examples.