public class AbstractTrainerTool<T,P> extends AbstractTypedParamTool<T,P>
Modifier and Type | Field and Description |
---|---|
protected ObjectStreamFactory<T> |
factory |
protected TrainingParameters |
mlParams |
protected P |
params |
protected ObjectStream<T> |
sampleStream |
paramsClass
type
Modifier | Constructor and Description |
---|---|
protected |
AbstractTrainerTool(Class<T> sampleType,
Class<P> params)
Constructor with type parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
run(String format,
String[] args)
Executes the tool with the given parameters.
|
getHelp
getBasicHelp, getHelp, getStreamFactory, validateAllArgs, validateFactoryArgs
getBasicHelp, getName, getShortDescription, hasParams, validateAndParseParams
protected P params
protected TrainingParameters mlParams
protected ObjectStreamFactory<T> factory
protected ObjectStream<T> sampleStream
public void run(String format, String[] args)
TypedCmdLineTool
run
in class TypedCmdLineTool<T>
format
- format to work withargs
- command line argumentsCopyright © 2015 The Apache Software Foundation. All rights reserved.