#[repr(u16)]pub enum ModelType {
Show 18 variants
LinearRegression = 1,
LogisticRegression = 2,
DecisionTree = 3,
RandomForest = 4,
GradientBoosting = 5,
KMeans = 6,
Pca = 7,
NaiveBayes = 8,
Knn = 9,
Svm = 10,
NgramLm = 16,
Tfidf = 17,
CountVectorizer = 18,
NeuralSequential = 32,
NeuralCustom = 33,
ContentRecommender = 48,
MixtureOfExperts = 64,
Custom = 255,
}Expand description
Model type identifiers.
Variants§
LinearRegression = 1
Linear regression (OLS/Ridge/Lasso)
LogisticRegression = 2
Logistic regression (GLM Binomial)
DecisionTree = 3
Decision tree (CART/ID3)
RandomForest = 4
Random forest (Bagging ensemble)
GradientBoosting = 5
Gradient boosting (Boosting ensemble)
KMeans = 6
K-means clustering (Lloyd’s algorithm)
Pca = 7
Principal component analysis
NaiveBayes = 8
Gaussian naive bayes
Knn = 9
K-nearest neighbors
Svm = 10
Support vector machine
NgramLm = 16
N-gram language model (Markov chains)
Tfidf = 17
TF-IDF vectorizer
CountVectorizer = 18
Count vectorizer
NeuralSequential = 32
Sequential neural network (Feed-forward)
NeuralCustom = 33
Custom neural architecture
ContentRecommender = 48
Content-based recommender
MixtureOfExperts = 64
Mixture of Experts (sparse/dense MoE)
Custom = 255
User-defined model
Implementations§
Trait Implementations§
impl Copy for ModelType
Source§impl<'de> Deserialize<'de> for ModelType
impl<'de> Deserialize<'de> for ModelType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelType
impl StructuralPartialEq for ModelType
Auto Trait Implementations§
impl Freeze for ModelType
impl RefUnwindSafe for ModelType
impl Send for ModelType
impl Sync for ModelType
impl Unpin for ModelType
impl UnsafeUnpin for ModelType
impl UnwindSafe for ModelType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more