API Reference#
scikit-learn compatible classifiers#
|
A decision tree classifier with support for nominal attributes. |
|
A Naive Bayes classifier supporting nominal attributes. |
|
A ZeroR classifier, equivalent to a TreeClassifier with a depth of 0 (only root). |
|
A OneR classifier, equivalent to a TreeClassifier with a depth of 1 (root and children). |
|
A rule-based classifier that performs sequential covering in a CN2 [1] style. |
|
A PRISM classifier. |
scikit-learn compatible regressors#
|
A decision tree regressor for nominal and numeric attributes. |
|
A ZeroR Regressor, equivalent to a TreeClassifier with a depth of 0 (only root). |
|
A OneR Regressor, equivalent to a TreeClassifier with a depth of 1. |
|
A rule-based regressor that performs sequential covering in a CN2 [1] style. |
Base classes#
BaseTree defines the pruning parameters for both TreeRegressor
and TreeClassifier. Nominal* classes define base methods to support inference with nominal attributes
Same thing with
|
Base class for decision trees with native nominal attribute support. |
|
Mixin class for all nominal models in sklearn_nominal. |
Base class for nominal classifiers. |
|
|
Base class for nominal regressors. |
Dataset classes#
In order to support nominal attributes, and facilitate the implementation of various estimators, sklearn_nominal abstracts away the details of a dataset with the corresponding Dataset class and implementations, including many common method such as filtering datasets on attribute-value conditions. Currently, only a pandas backend is available, but future versions may include polars or pure numpy backends.
A Dataset abstracts away the contents of a dataset and provides common operations, specially filtering and statistics operations, to implement models that support nominal attributes. |
|
|
|
|
A condition to filter rows of a :class: Dataset |