Construct the FeedForward model and fit on the input training data
Construct the FeedForward model and fit on the input training data
the trained model
Whether allow extra parameters that are not needed by symbol to be passed by aux_params and arg_params.
Whether allow extra parameters that are not needed by symbol to be passed by aux_params and arg_params. If this is True, no error will be thrown when aux_params and arg_params contain extra parameters than needed.
Set the model parameter, dict of name to NDArray of net's weights.
Set the model parameter, dict of name to NDArray of net's auxiliary states
batchEndCallback A callback that is invoked at end of each batch.
batchEndCallback A callback that is invoked at end of each batch. For print purpose.
Set the batch size of training data.
Set the beginning training epoch.
Set ctx The device context of training and prediction.
Set ctx The device context of training and prediction. To use multi GPU training, pass in a list of gpu contexts.
A callback that is invoked at end of each epoch.
A callback that is invoked at end of each epoch. This can be used to checkpoint model each epoch.
Set number of batches in a epoch.
Set number of batches in a epoch. In default, it is set to ceil(num_train_examples / batch_size)
Set the evaluation data
Set the evaluation metric.
Set the evaluation metric. Default Accuracy()
Set the initialization scheme used.
Set the initialization scheme used. Default Uniform(0.01f).
A string kvstore type: 'local' : multi-devices on a single machine, will automatically choose one from 'local_update_cpu', 'local_allreduce_cpu', and 'local_allreduce_device' 'dist_sync' : multi-machines with BSP 'dist_async' : multi-machines with partical asynchronous In default uses 'local', often no need to change for single machine.
this will take precedence over the setKVStore(String) version
When not specified, default logger will be used.
Set number of training epochs
Set optimizer for training.
Set optimizer for training. Default SGD.
Set the training data
Set the list of work load for different devices, in the same order as ctx
Construct the FeedForward model but do NOT train
Construct the FeedForward model but do NOT train
the un-trained model