Frobby 0.9.5
|
Public Member Functions | |
virtual const char * | getName () const |
Returns the name of the strategy. | |
virtual size_t | getLabelSplitVariable (const Slice &slice) const |
Returns the variable to perform a label split on. | |
![]() | |
virtual void | getPivot (Term &pivot, Slice &slice) const |
Sets pivot to the pivot of a pivot split on slice. | |
virtual void | getPivot (Term &pivot, Slice &slice, const TermGrader &grader) const |
Sets pivot to the pivot of a pivot split on slice. | |
virtual bool | isPivotSplit () const |
If returns true, only call getPivot. | |
![]() | |
virtual | ~SplitStrategy () |
Static Public Member Functions | |
static const char * | staticGetName () |
![]() | |
static auto_ptr< SplitStrategy > | createStrategy (const string &prefix) |
Returns the strategy whose name has the given prefix. | |
Additional Inherited Members | |
![]() | |
void | setCounts (const Slice &slice) const |
void | setOneCounts (const Slice &slice) const |
virtual bool | isLabelSplit () const |
If returns true, only call getLabelSplitVariable. | |
![]() | |
Exponent | getMedianPositiveExponentOf (Slice &slice, size_t var) const |
size_t | getBestVar (const Slice &slice) const |
![]() | |
SplitStrategy () | |
SplitStrategy (const SplitStrategy &) | |
SplitStrategy & | operator= (const SplitStrategy &) |
bool | operator== (const SplitStrategy &) |
![]() | |
Term | _counts |
Term | _oneCounts |
![]() | |
Term | coVariableForGetBestVar |
Definition at line 135 of file SplitStrategy.cpp.
Returns the variable to perform a label split on.
This method must only be called if isLabelSplit() returns true.
Reimplemented from SplitStrategyCommon.
Definition at line 145 of file SplitStrategy.cpp.
Returns the name of the strategy.
Implements SplitStrategy.
Definition at line 137 of file SplitStrategy.cpp.
Definition at line 141 of file SplitStrategy.cpp.