[−][src]Struct grandma::plugins::distributions::DirichletBaseline
Trains a baseline by sampling randomly from the training set (used to create the tree) This baseline is not realistic.
Implementations
impl<D: PointCloud> DirichletBaseline<D>
[src]
pub fn new(reader: CoverTreeReader<D>) -> DirichletBaseline<D>
[src]
New with sensible defaults
pub fn set_sequence_len(&mut self, sequence_len: usize)
[src]
Sets a new training sequence window_size, default 200. Stats for each total lenght of sequence are returned
pub fn set_num_sequences(&mut self, num_sequences: usize)
[src]
Sets a new count of sequences to train over, default 100. Stats for each sequence are returned.
pub fn set_window_size(&mut self, window_size: usize)
[src]
Sets a new maximum lenght of sequence, before it starts forgetting data, default 50
pub fn set_prior_weight(&mut self, prior_weight: f64)
[src]
Sets a new prior weight, default 1.0. The prior is multiplied by this to increase or decrease it's importance
pub fn set_observation_weight(&mut self, observation_weight: f64)
[src]
Sets a new observation weight, default 1.0. Each discrete observation is treated as having this value.
pub fn train(&self) -> GrandmaResult<Vec<Vec<KLDivergenceStats>>>
[src]
Trains the sequences up.
Auto Trait Implementations
impl<D> !RefUnwindSafe for DirichletBaseline<D>
impl<D> Send for DirichletBaseline<D>
impl<D> !Sync for DirichletBaseline<D>
impl<D> Unpin for DirichletBaseline<D>
impl<D> UnwindSafe for DirichletBaseline<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,