#[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§
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 Copy for ModelType
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more