public class TrainingParameters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALGORITHM_PARAM |
static java.lang.String |
CUTOFF_PARAM |
static java.lang.String |
ITERATIONS_PARAM |
static java.lang.String |
TRAINER_TYPE_PARAM |
Constructor and Description |
---|
TrainingParameters() |
TrainingParameters(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
algorithm()
Retrieves the training algorithm name.
|
java.lang.String |
algorithm(java.lang.String namespace)
Retrieves the training algorithm name for a given name space.
|
static TrainingParameters |
defaultParams() |
TrainingParameters |
getParameters(java.lang.String namespace) |
java.util.Map<java.lang.String,java.lang.String> |
getSettings()
Retrieves all parameters without a name space.
|
java.util.Map<java.lang.String,java.lang.String> |
getSettings(java.lang.String namespace)
Retrieves a map with the training parameters which have the passed name space.
|
void |
put(java.lang.String key,
java.lang.String value) |
void |
put(java.lang.String namespace,
java.lang.String key,
java.lang.String value) |
void |
serialize(java.io.OutputStream out) |
public static final java.lang.String ALGORITHM_PARAM
public static final java.lang.String TRAINER_TYPE_PARAM
public static final java.lang.String ITERATIONS_PARAM
public static final java.lang.String CUTOFF_PARAM
public TrainingParameters()
public TrainingParameters(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public java.lang.String algorithm(java.lang.String namespace)
public java.lang.String algorithm()
public java.util.Map<java.lang.String,java.lang.String> getSettings(java.lang.String namespace)
namespace
- public java.util.Map<java.lang.String,java.lang.String> getSettings()
public TrainingParameters getParameters(java.lang.String namespace)
public void put(java.lang.String namespace, java.lang.String key, java.lang.String value)
public void put(java.lang.String key, java.lang.String value)
public void serialize(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static final TrainingParameters defaultParams()
Copyright © 2010 - 2020 Adobe. All Rights Reserved