public class QNTrainer extends AbstractEventTrainer
Modifier and Type | Field and Description |
---|---|
static double |
L1COST_DEFAULT |
static String |
L1COST_PARAM |
static double |
L2COST_DEFAULT |
static String |
L2COST_PARAM |
static int |
M_DEFAULT |
static String |
M_PARAM |
static int |
MAX_FCT_EVAL_DEFAULT |
static String |
MAX_FCT_EVAL_PARAM |
static String |
MAXENT_QN_VALUE |
static int |
THREADS_DEFAULT |
static String |
THREADS_PARAM |
DATA_INDEXER_ONE_PASS_REAL_VALUE, DATA_INDEXER_ONE_PASS_VALUE, DATA_INDEXER_PARAM, DATA_INDEXER_TWO_PASS_VALUE
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM, VERBOSE_DEFAULT, VERBOSE_PARAM
EVENT_VALUE
Constructor and Description |
---|
QNTrainer() |
QNTrainer(boolean printMessages) |
QNTrainer(int m) |
QNTrainer(int m,
boolean verbose) |
QNTrainer(int m,
int maxFctEval,
boolean printMessages) |
QNTrainer(TrainingParameters parameters) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
doTrain(DataIndexer indexer) |
void |
init(Map<String,String> trainParams,
Map<String,String> reportMap)
Deprecated.
|
void |
init(TrainingParameters trainingParameters,
Map<String,String> reportMap) |
boolean |
isSortAndMerge() |
boolean |
isValid()
Deprecated.
|
QNModel |
trainModel(int iterations,
DataIndexer indexer) |
void |
validate()
Check parameters.
|
getDataIndexer, train, train
getAlgorithm, getCutoff, getIterations
public static final String MAXENT_QN_VALUE
public static final String THREADS_PARAM
public static final int THREADS_DEFAULT
public static final String L1COST_PARAM
public static final double L1COST_DEFAULT
public static final String L2COST_PARAM
public static final double L2COST_DEFAULT
public static final String M_PARAM
public static final int M_DEFAULT
public static final String MAX_FCT_EVAL_PARAM
public static final int MAX_FCT_EVAL_DEFAULT
public QNTrainer(TrainingParameters parameters)
public QNTrainer(boolean printMessages)
public QNTrainer(int m)
public QNTrainer(int m, boolean verbose)
public QNTrainer(int m, int maxFctEval, boolean printMessages)
public QNTrainer()
public void init(TrainingParameters trainingParameters, Map<String,String> reportMap)
init
in interface EventTrainer
init
in class AbstractTrainer
@Deprecated public void init(Map<String,String> trainParams, Map<String,String> reportMap)
init
in interface EventTrainer
init
in class AbstractTrainer
public void validate()
AbstractTrainer
validate
in class AbstractEventTrainer
@Deprecated public boolean isValid()
isValid
in class AbstractEventTrainer
public boolean isSortAndMerge()
isSortAndMerge
in class AbstractEventTrainer
public AbstractModel doTrain(DataIndexer indexer) throws IOException
doTrain
in class AbstractEventTrainer
IOException
public QNModel trainModel(int iterations, DataIndexer indexer)
Copyright © 2020 The Apache Software Foundation. All rights reserved.