logo
pub struct Experiment { /* private fields */ }
Expand description

A machine learning context. Takes batches of observations, and produces corresponding batches of actions.

Implementations

Start training with a new experiment.

host where the hive server exists. game_name identifier for a type of game, e.g. ‘pong’ or ‘moreau-arena’. experiment_name identifier for this experiment. This can be any arbitrary data. If the server already has an experiment with that name then a number will be appended to make it unique. num_features number of floating point values the neural network takes as input in each observation. num_actions number of floating point values the neural network outputs for each observation. num_remote_workers number of workers that should be started in the cloud. Using a non-zero number is only supported when using a cloud host. config is a piece of data that contains all the necessary information to re-create the training run. This is not used anywhere internally, but when connecting to an existing experiment you can query it using the Experiment::config method. The only constraint on this data is that it must be valid json. This is very useful for remote workers as they can download this configuration. checkpoint optional reference to checkpoint data to load from. TODO: Api for listing checkpoints. training_duration_in_seconds Number of seconds that the training will run for. The hive server will stop the experiment after this amount of time. This is primarily useful when training in the cloud with remote workers,

Connects to an already running experiment

Retrieves the configuration for the experiment

This may require a download from the hive server.

Number of actions that this experiment outputs

Number of features that this experiment takes as input

Retrieves current training metrics for Hive

Retrieves a trained snapshot.

Trains using the current batch of observations.

Send demonstration experiences recorded in ark to Hive. Will return an error if the Hive protocol doesn’t support imitation learning

Send augmented experiences augmented in ark to Hive.

The list of observations represents one timestep for a set of agents. You should not include multiple observations for a single agent, call this method multiple times instead.

Stops an experiment and all associated workers.

If you just want to disconnect this client (without stopping potential remote workers) then simply drop the experiment.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.