public final class TrainTestHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Model<Label> |
run(com.oracle.labs.mlrg.olcut.config.ConfigurationManager cm,
DataOptions dataOptions,
Trainer<Label> trainer)
This method trains a model on the specified training data, and evaluates it
on the specified test data.
|
public static Model<Label> run(com.oracle.labs.mlrg.olcut.config.ConfigurationManager cm, DataOptions dataOptions, Trainer<Label> trainer) throws IOException
cm
- The configuration manager which knows the arguments.dataOptions
- The data options which specify the training and test data.trainer
- The trainer to use.IOException
- If the data failed to load.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.