Struct machinebox::suggestionbox::Suggestionbox [] [src]

pub struct Suggestionbox { /* fields omitted */ }

The client for the suggestionbox machine box.

Methods

impl Suggestionbox
[src]

[src]

Creates a new suggestionbox client

[src]

Creates a new model and returns a copy of the model as seen by the suggestion box, including the options used in model generation.

[src]

Deletes a model from the box. If the model doesn't exist, it will return an error of type Machinebox indicating an HTTP 404.

[src]

Retrieves a single model from the box

[src]

Lists all of the models currently managed by the suggestion box

[src]

Obtains statistics about the given model

[src]

Asks the suggestionbox to make a prediction based upon the supplied list of features in the prediction request. Keep in mind that these features apply to the user for whom the prediction is being made, and don't imply any direct link to the features associated with model choices.

[src]

Reward tells the suggestionbox about a successful prediction. Rewarding predictions is how this box learns to make better predictions over time. You will need to submit your reward within the reward_expiration_seconds timeout period of the model.

[src]

Fills the supplied buffer with the contents of the state file obtained from the machine box. This buffer can be any kind of Write, which includes empty vectors, files on disk, etc. The state file is binary. Returns the number of bytes written to the buffer.

[src]

Submits the state file indicated by the source_path parameter to the suggestion box and returns the model originally contained in the state file

[src]

Submits a URL to the suggestion box. The suggestion box will download the state contained in the file indicated by the URL and return the model from the state file

Trait Implementations

impl BoxClient for Suggestionbox
[src]

[src]

Indicates the URL of the box

[src]

Provides information about the box

[src]

Checks the health of the box

[src]

Determines whether the box is live

[src]

Determines if the box is ready. Some boxes may take a while to start up, so you can use this function to check if it is acceptable to start using the box-specific functionality Read more

Auto Trait Implementations

impl Send for Suggestionbox

impl Sync for Suggestionbox