public static class LearningClassifierExpression.Clause extends Object
LearningClassifierExpression
. Note that this
class is not an ASTNode
since it is only an intermediary used during parsing.Modifier and Type | Field and Description |
---|---|
Constant |
alpha
Determines the parameter with which the confidence interval is calculated.
|
static int |
ALPHA
Value of the
type variable |
ASTNode |
argument
The argument of the clause.
|
static int |
CVAL
Value of the
type variable. |
static int |
ENCODING
Value of the
type variable |
static int |
EVALUATE
Value of the
type variable. |
static int |
FROM
Value of the
type variable. |
Constant |
K
Dictates how cross-validation divides the training data; used only by the
cval clause. |
Block |
learnerParameterBlock
A block of statements intended to be used to set learner parameters; used only by the
with clause. |
static int |
PREEXTRACT
Value of the
type variable |
Constant |
progressOutput
Determines how often to give the user status output during training.
|
static int |
PROGRESSOUTPUT
Value of the
type variable |
static int |
PRUNE
Value of the
type variable |
Constant |
pruneCountType
Whether to use "global" or "perClass" feature pruning.
|
Constant |
pruneThreshold
The feature pruning threshold.
|
Constant |
pruneThresholdType
Whether to use "count" or "percent" counting for feature pruning.
|
Expression |
rounds
Represents the number training repetitions; used only by the
from clause. |
FoldParser.SplitPolicy |
splitPolicy
Dictates how the training data will be split into subsets for use by cross validation.
|
static int |
TESTFROM
Value of the
type variable. |
static int |
TESTINGMETRIC
Value of the
type variable |
int |
type
The type of the clause.
|
static String[] |
typeNames
String representations of the type names.
|
static int |
USING
Value of the
type variable. |
static int |
WITH
Value of the
type variable. |
Modifier | Constructor and Description |
---|---|
|
Clause(int t,
ASTNode a)
Initializing constructor.
|
|
Clause(int t,
ASTNode a,
Expression r)
Full constructor.
|
protected |
Clause(int t,
ASTNode a,
Expression r,
Block b,
Constant k,
FoldParser.SplitPolicy s,
Constant al,
Constant p,
Constant pct,
Constant ptt,
Constant pt)
This constructor is only called by
clone() . |
|
Clause(int t,
Constant x,
Constant y,
Constant z)
A constructor with 3 Constant parameters, used for the
prune clause. |
|
Clause(int t,
Name n,
Block b)
A constructor for a with clause with a parameter setting block.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member
data objects as well.
|
String |
toString()
Debugging utility method.
|
public static final int USING
type
variable.public static final int FROM
type
variable.public static final int WITH
type
variable.public static final int TESTFROM
type
variable.public static final int EVALUATE
type
variable.public static final int CVAL
type
variable.public static final int PREEXTRACT
type
variablepublic static final int PROGRESSOUTPUT
type
variablepublic static final int TESTINGMETRIC
type
variablepublic static final int ALPHA
type
variablepublic static final int PRUNE
type
variablepublic static final int ENCODING
type
variablepublic static final String[] typeNames
public int type
public ASTNode argument
public Expression rounds
from
clause.public Block learnerParameterBlock
with
clause.public Constant K
cval
clause.public Constant pruneCountType
public Constant pruneThresholdType
public Constant pruneThreshold
public FoldParser.SplitPolicy splitPolicy
public Constant alpha
public Constant progressOutput
public Clause(int t, ASTNode a)
t
- The type.a
- The argument node.public Clause(int t, ASTNode a, Expression r)
t
- The type.a
- The argument node.r
- Could represent the number of training repetitions or the split policy.public Clause(int t, Constant x, Constant y, Constant z)
prune
clause.t
- The type.x
- The first parameter.y
- The second parameter.z
- The third parameter.public Clause(int t, Name n, Block b)
t
- The type.n
- The name of the learner used by this learning classifier.b
- The parameter setting block.protected Clause(int t, ASTNode a, Expression r, Block b, Constant k, FoldParser.SplitPolicy s, Constant al, Constant p, Constant pct, Constant ptt, Constant pt)
clone()
.t
- The type of the clause.a
- The argument of the clause.r
- Represents the number of training repetitions.b
- A block of statements that set parameters of a learning algorithm.k
- The number of folds for cross validation.s
- The data splitting policy for cross validation.al
- The width of the confidence interval for cross validation output.p
- The frequency in examples of progress updates.pct
- The type of pruning.ptt
- The type of feature counting for pruning.pt
- The pruning threshold.public Object clone()
Copyright © 2016. All rights reserved.