[−][src]Struct rust_nb::Model
Methods
impl<T: ModelStore + Sync> Model<T>
[src]
pub fn with_stop_words_file(self, stop_words_file: &str) -> Self
[src]
pub fn with_default_gaussian_m2(self, default_gaussian_m2: f64) -> Self
[src]
pub fn with_pseudo_count(self, pseudo_count: f64) -> Self
[src]
pub fn with_prior_factor(self, prior_factor: f64) -> Self
[src]
pub fn with_default_gaussian_sigma_factor(
self,
default_gaussian_sigma_factor: f64
) -> Self
[src]
self,
default_gaussian_sigma_factor: f64
) -> Self
pub fn train(
&mut self,
model_name: &str,
class_feature_pairs: &[(String, Vec<Feature>)]
)
[src]
&mut self,
model_name: &str,
class_feature_pairs: &[(String, Vec<Feature>)]
)
pub fn predict(
&self,
model_name: &str,
features: &[Feature]
) -> HashMap<String, f64>
[src]
&self,
model_name: &str,
features: &[Feature]
) -> HashMap<String, f64>
pub fn predict_batch(
&self,
model_name: &str,
features_vec: &[Vec<Feature>]
) -> Vec<HashMap<String, f64>>
[src]
&self,
model_name: &str,
features_vec: &[Vec<Feature>]
) -> Vec<HashMap<String, f64>>
impl Model<ModelHashMapStore>
[src]
pub fn new() -> Model<ModelHashMapStore>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,