public class QNTrainer extends AbstractEventTrainer
Modifier and Type | Field and Description |
---|---|
static double |
L1COST_DEFAULT |
static java.lang.String |
L1COST_PARAM |
static double |
L2COST_DEFAULT |
static java.lang.String |
L2COST_PARAM |
static int |
M_DEFAULT |
static java.lang.String |
M_PARAM |
static int |
MAX_FCT_EVAL_DEFAULT |
static java.lang.String |
MAX_FCT_EVAL_PARAM |
static java.lang.String |
MAXENT_QN_VALUE |
static int |
THREADS_DEFAULT |
static java.lang.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 java.lang.String MAXENT_QN_VALUE
public static final java.lang.String THREADS_PARAM
public static final int THREADS_DEFAULT
public static final java.lang.String L1COST_PARAM
public static final double L1COST_DEFAULT
public static final java.lang.String L2COST_PARAM
public static final double L2COST_DEFAULT
public static final java.lang.String M_PARAM
public static final int M_DEFAULT
public static final java.lang.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 java.io.IOException
doTrain
in class AbstractEventTrainer
java.io.IOException
public QNModel trainModel(int iterations, DataIndexer indexer)
Copyright © 2010 - 2020 Adobe. All Rights Reserved