Training and Testing¶
To train a model on a data set and test the model, run the following command:
silas learn [OPTIONS] [settings_file]
where settings_file specifies the settings file and OPTIONS include:
- -h: Print help message and exit.
- -e spec_file: Perform enforcement learning which builds machine learning models that are compliant with respect to the user specifications defined in spec_file. The definition of spec_file can be found in User Specifications.
- -o model_dir: Output models in the directory model_dir.
For example, to build a model using settings1.json and output the model in model/this-model/, issue the following command:
silas learn -o model/this-model/ settings1.json