Struct machinebox::suggestionbox::ModelOptions [] [src]

pub struct ModelOptions {
    pub reward_expiration_seconds: u64,
    pub epsilon: f64,
    pub softmax_lambda: f64,
    pub ngrams: i32,
    pub skipgrams: i32,
}

Various configuration parameters that can be used to tweak the behavior and learning options of the suggestionbox model.

Fields

Determines the maximum length of time in seconds between when a prediction is presented to a client and when a reward is posted.

Epsilon enables proportionate exploiting vs. exploring ratio.

Soft max lambda enables adaptive exploiting vs exploring ratio.

The n-grams used for analysis

skip-grams used for text analysis

Trait Implementations

impl Debug for ModelOptions
[src]

[src]

Formats the value using the given formatter.

impl Clone for ModelOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more