public class TrainingParameters extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_PARAM |
static String |
CUTOFF_PARAM |
static String |
ITERATIONS_PARAM |
static String |
TRAINER_TYPE_PARAM |
Constructor and Description |
---|
TrainingParameters() |
TrainingParameters(InputStream in) |
Modifier and Type | Method and Description |
---|---|
String |
algorithm()
Retrieves the training algorithm name.
|
String |
algorithm(String namespace)
Retrieves the training algorithm name for a given name space.
|
static TrainingParameters |
defaultParams() |
TrainingParameters |
getParameters(String namespace) |
Map<String,String> |
getSettings()
Retrieves all parameters without a name space.
|
Map<String,String> |
getSettings(String namespace)
Retrieves a map with the training parameters which have the passed name space.
|
void |
put(String key,
String value) |
void |
put(String namespace,
String key,
String value) |
void |
serialize(OutputStream out) |
public static final String ALGORITHM_PARAM
public static final String TRAINER_TYPE_PARAM
public static final String ITERATIONS_PARAM
public static final String CUTOFF_PARAM
public TrainingParameters()
public TrainingParameters(InputStream in) throws IOException
IOException
public String algorithm(String namespace)
public String algorithm()
public Map<String,String> getSettings(String namespace)
namespace
- public Map<String,String> getSettings()
public TrainingParameters getParameters(String namespace)
public void serialize(OutputStream out) throws IOException
IOException
public static final TrainingParameters defaultParams()
Copyright © 2015 The Apache Software Foundation. All rights reserved.