Struct fann::TrainData [] [src]

pub struct TrainData { /* fields omitted */ }

Methods

impl TrainData
[src]

Read a file that stores training data.

The file must be formatted like:

num_train_data num_input num_output
inputdata separated by space
outputdata separated by space
.
.
.
inputdata separated by space
outputdata separated by space

Create training data using the given callback which for each number between 0 (included) and num_data (excluded) returns a pair of input and output vectors with num_input and num_output entries respectively.

Save the training data to a file.

Merge the given data sets into a new one.

Create a subset of the training data, starting at the given positon and consisting of length samples.

Return the number of training patterns in the data.

Return the number of input values in each training pattern.

Return the number of output values in each training pattern.

Scale input and output in the training data using the parameters previously calculated for the given network.

Descale input and output in the training data using the parameters previously calculated for the given network.

Scales the inputs in the training data to the specified range.

Scales the outputs in the training data to the specified range.

Scales the inputs and outputs in the training data to the specified range.

Shuffle training data, randomizing the order. This is recommended for incremental training while it does not affect batch training.

Get a pointer to the underlying raw fann_train_data structure.

Trait Implementations

impl Clone for TrainData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for TrainData
[src]

A method called when the value goes out of scope. Read more