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_VALUE, DATA_INDEXER_PARAM, DATA_INDEXER_TWO_PASS_VALUE
ALGORITHM_PARAM, CUTOFF_DEFAULT, CUTOFF_PARAM, ITERATIONS_DEFAULT, ITERATIONS_PARAM, TRAINER_TYPE_PARAM
EVENT_VALUE
Constructor and Description |
---|
QNTrainer() |
QNTrainer(boolean verbose) |
QNTrainer(int m) |
QNTrainer(int m,
boolean verbose) |
QNTrainer(int m,
int maxFctEval,
boolean verbose) |
Modifier and Type | Method and Description |
---|---|
AbstractModel |
doTrain(DataIndexer indexer) |
boolean |
isSortAndMerge() |
boolean |
isValid() |
QNModel |
trainModel(int iterations,
DataIndexer indexer) |
getDataIndexer, train
getAlgorithm, getCutoff, getIterations, init
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
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(boolean verbose)
public QNTrainer(int m)
public QNTrainer(int m, boolean verbose)
public QNTrainer(int m, int maxFctEval, boolean verbose)
public QNTrainer()
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 © 2015 The Apache Software Foundation. All rights reserved.