public abstract class AbstractTrainer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALGORITHM_PARAM |
static int |
CUTOFF_DEFAULT |
static String |
CUTOFF_PARAM |
static int |
ITERATIONS_DEFAULT |
static String |
ITERATIONS_PARAM |
static String |
TRAINER_TYPE_PARAM |
static boolean |
VERBOSE_DEFAULT |
static String |
VERBOSE_PARAM |
Constructor and Description |
---|
AbstractTrainer() |
AbstractTrainer(TrainingParameters parameters) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
int |
getCutoff() |
int |
getIterations() |
void |
init(Map<String,String> trainParams,
Map<String,String> reportMap)
Deprecated.
|
void |
init(TrainingParameters trainingParameters,
Map<String,String> reportMap) |
boolean |
isValid()
Deprecated.
Use
validate() instead. |
void |
validate()
Check parameters.
|
public static final String ALGORITHM_PARAM
public static final String TRAINER_TYPE_PARAM
public static final String CUTOFF_PARAM
public static final int CUTOFF_DEFAULT
public static final String ITERATIONS_PARAM
public static final int ITERATIONS_DEFAULT
public static final String VERBOSE_PARAM
public static final boolean VERBOSE_DEFAULT
public AbstractTrainer()
public AbstractTrainer(TrainingParameters parameters)
public void init(TrainingParameters trainingParameters, Map<String,String> reportMap)
@Deprecated public void init(Map<String,String> trainParams, Map<String,String> reportMap)
public String getAlgorithm()
public int getCutoff()
public int getIterations()
public void validate()
IllegalArgumentException
@Deprecated public boolean isValid()
validate()
instead.Copyright © 2021 The Apache Software Foundation. All rights reserved.