Modifier and Type | Field and Description |
---|---|
protected Parser |
Train.TrainingThread.testParser
The parser from which testing objects are obtained.
|
Modifier and Type | Method and Description |
---|---|
static TestDiscrete |
TestDiscrete.testDiscrete(Classifier classifier,
Classifier oracle,
Parser parser)
Tests the given discrete classifier against the given oracle using the given parser to
provide the labeled testing data.
|
static TestDiscrete |
TestDiscrete.testDiscrete(TestDiscrete tester,
Classifier classifier,
Classifier oracle,
Parser parser,
boolean output,
int outputGranularity)
Tests the given discrete classifier against the given oracle using the given parser to
provide the labeled testing data.
|
static void |
TestReal.testReal(TestReal tester,
Classifier classifier,
Classifier oracle,
Parser parser,
boolean output,
int outputGranularity)
Tests the given
real classifier against the given oracle using the given
Parser to provide the real labeled testing data. |
Modifier and Type | Field and Description |
---|---|
protected Parser |
BatchTrainer.parser
The parser from which training data for
BatchTrainer.learner is received. |
Modifier and Type | Method and Description |
---|---|
Parser |
BatchTrainer.getParser()
Returns the value of
BatchTrainer.parser . |
Modifier and Type | Method and Description |
---|---|
double |
Accuracy.test(Classifier classifier,
Classifier oracle,
Parser parser)
Evaluates a classifier against an oracle on the data provided by a parser.
|
double |
TestingMetric.test(Classifier classifier,
Classifier oracle,
Parser parser)
Evaluates a classifier against an oracle on the data provided by a parser.
|
protected double |
BatchTrainer.testMidTraining(Parser testParser,
TestingMetric metric,
boolean clone)
Tests
BatchTrainer.learner on the
specified data while making provisions under the assumption that this test happens in between
rounds of training. |
Learner.Parameters |
BatchTrainer.tune(Learner.Parameters[] parameters,
int[] rounds,
Parser devParser,
TestingMetric metric)
Tune learning algorithm
parameters against a development set.
|
Constructor and Description |
---|
BatchTrainer(Learner l,
Parser p)
Creates a new trainer that doesn't produce status messages.
|
BatchTrainer(Learner l,
Parser p,
int o)
Creates a new trainer that produces status messages.
|
BatchTrainer(Learner l,
Parser p,
int o,
String i)
Creates a new trainer that produces status
messages with the specified indentation spacing for status messages.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayFileParser
This parser returns an array of arrays representing each example.
|
class |
ArrayParser
This parser returns the example objects in an array one at a time.
|
class |
ChildrenFromVectors
Use this parser in conjunction with another parser that returns
LinkedVector s, and
this parser will return their LinkedChild ren. |
class |
FoldParser
Useful when performing k-fold cross validation, this parser filters the examples coming
from another parser.
|
class |
LineByLine
This abstract
Parser does not define the next() method, but it does
define a constructor that opens the specified file and a readLine() method that
fetches the next line of text from that file, taking care of exception handling. |
Modifier and Type | Field and Description |
---|---|
protected Parser |
FoldParser.parser
The parser whose examples are being filtered.
|
protected Parser |
ChildrenFromVectors.parser
A parser that returns
LinkedVector s. |
Modifier and Type | Method and Description |
---|---|
Parser |
FoldParser.getParser()
Returns the value of
FoldParser.parser . |
Constructor and Description |
---|
ChildrenFromVectors(Parser p)
Creates the parser.
|
FoldParser(Parser parser,
FoldParser.SplitPolicy split,
int pivot,
boolean f)
Constructor for when you know neither how many examples are in the data nor K, i.e.,
how many folds are in the data.
|
FoldParser(Parser parser,
int K,
FoldParser.SplitPolicy split,
int pivot,
boolean f)
Constructor for when you don't know how many examples are in the data.
|
FoldParser(Parser parser,
int K,
FoldParser.SplitPolicy split,
int pivot,
boolean f,
int e)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
static Parser |
ClassUtils.getParser(String name)
Retrieve a
Parser by name using the no-argument constructor. |
static Parser |
ClassUtils.getParser(String name,
boolean exit)
Retrieve a
Parser by name using the no-argument constructor. |
static Parser |
ClassUtils.getParser(String name,
Class[] paramTypes,
Object[] arguments)
Retrieve a
Parser by name using a constructor with arguments. |
static Parser |
ClassUtils.getParser(String name,
Class[] paramTypes,
Object[] arguments,
boolean exit)
Retrieve a
Parser by name using a constructor with arguments. |
Copyright © 2016. All rights reserved.