public class Tree.Est extends UPFunctionModel.Est
Modifier and Type | Class and Description |
---|---|
class |
Tree.Est.Sel
Class of variable selector of the input datum id,
where iod=(id,od).
|
Function.Native.WithInverse
Function.Cts2Cts, Function.Cts2Cts2Cts, Function.CtsD2CtsD, Function.HasInverse, Function.Native, Function.Native2, Function.Native3
Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple
Modifier and Type | Field and Description |
---|---|
Estimator |
leafEst
leafEst estimates a Model of the output datum, col=1.
|
Tree.Est.Sel |
sel0
Selects all of the input datum id, where iod=(id,od).
|
Modifier and Type | Method and Description |
---|---|
Tree.DFork |
estDF(int nF,
boolean[] f,
Vector col,
int cN,
Tree.Est.Sel sel,
Vector ds,
int lookahead)
Estimate a DFork on the Discrete Bounded column 'col',
numbered 'cN', of the input (indep.) datum.
|
Tree.Leaf |
estLeaf(Vector ds)
Estimate a Leaf, i.e., Model of the output (dependent) column
ignoring the input (indep.) column(s).
|
Tree.M |
estOF(int nF,
boolean[] f,
Vector col,
int cN,
Tree.Est.Sel sel,
Vector ds,
int lookahead)
Estimate an OFork on the input column 'col', numbered 'cN'.
|
Tree.M |
recSearch(int nF,
boolean[] f,
Vector ds,
int lookahead)
Coordinate the recursive search for a good (best?) Tree Model.
|
Tree.M |
search(Vector ds,
int lookahead)
Given a data-set, ds=(id,od)*, estimate a fully
parameterised M:id→od; calls
recSearch . |
Tree.M |
searchMV(int nF,
boolean[] f,
Vector ds,
int lookahead,
Tree.M leaf)
Search for a column of a Multivariate input datum on which to split.
|
Tree.Est.Sel |
sel(int col)
Selector of input column (variable) 'col' of the input datum id,
where iod=(id,od).
|
Tree.M |
ss2Model(Value ss)
Given statistics
ss (= ds) of a
data-set, ds, estimate a fully parameterised M:id→od;
calls search(ss, 1) . |
ds2FunctionModel, ds2Model, ss2FunctionModel
defnParams, sp2Model, stats, stats, toString
apply, asUPModel, ds2Model, ds2ModelSp, ss2ModelSp, stats, stats
public final Estimator leafEst
estLeaf
.public Tree.Est.Sel sel0
public Est(Value ps)
public Tree.M ss2Model(Value ss)
ss
(= ds) of a
data-set, ds, estimate a fully parameterised M:id→od;
calls search(ss, 1)
.
You can call the latter directly to vary the lookahead.ss2Model
in class UPFunctionModel.Est
public Tree.M search(Vector ds, int lookahead)
recSearch
.
If lookahead=0, potential Fork choices will be compared initially
on the basis that each one is a Fork of Leafs. Increasing lookahead
>0 may give a better result, but will take more time.
Called by ss2Model(ss)
.public Tree.Est.Sel sel(int col)
public Tree.DFork estDF(int nF, boolean[] f, Vector col, int cN, Tree.Est.Sel sel, Vector ds, int lookahead)
recSearch
.public Tree.M estOF(int nF, boolean[] f, Vector col, int cN, Tree.Est.Sel sel, Vector ds, int lookahead)
recSearch
.