Module object_detector_rust::classifier
source · Expand description
The classifier module provides traits and implementations for object classification algorithms.
The Trainable trait allows models to be trained on input data and labels. The Predictable trait allows trained models to make predictions on new input data. The Classifier trait combines both Trainable and Predictable into a single trait for
Structs
- The
BayesClassifierstruct provides a Gaussian Naive Bayes classifier. - A classifier that combines the predictions of two other classifiers.
- A struct for training and making predictions with a random forest classifier.
- The SVMClassifier struct represents an SVM classifier with a trained model. The model is an option type, which means it is initially empty. The new function creates a new SVMClassifier instance with an empty model.
Traits
- The Classifier trait defines the behavior of a machine learning model that is capable of classifying data points into one of several categories. This trait is composed of two other traits: Trainable and Predictable.