Skip to content

Scripting

Clemens-Alexander Brust edited this page Dec 13, 2015 · 2 revisions

The trainNetwork utility can be scripted for unattended training. To run a script, add a third parameter to the command line:

./trainNetwork dataset_config.set network.net training_script

The script is then interpreted line by line. The commands are exactly the same as in the interactive environment.

Example

This is a script that will run smaller and continually larger epochs and save the work in between:

set experiment name=my_experiment
train epochs=5
test
save file=epoch_5.Tensor
train epochs=15
test
save file=epoch_20.Tensor
train epochs=20
test
save file=epoch_40.Tensor
train epochs=40
test
save file=epoch_80.Tensor