forpy
2
|
Find an optimal threshold. More...
#include <ithreshopt.h>
Public Member Functions | |
virtual | ~IThreshOpt () |
virtual std::shared_ptr< IThreshOpt > | create_duplicate (const uint &random_seed) const VIRTUAL_PTR |
virtual bool | supports_weights () const |
Whether this threshold optimizer can take into account weights during the optimization. More... | |
virtual void | check_annotations (IDataProvider *dprov) VIRTUAL_VOID |
Validate annotations for usability with this optimizer. More... | |
virtual void | transfer_or_run_check (IThreshOpt *other, IDataProvider *dprov) VIRTUAL_VOID |
virtual void | full_entropy (const IDataProvider &dprov, Desk *) const VIRTUAL_VOID |
Get the full entropy for one node before optimization. More... | |
virtual void | optimize (Desk *) const VIRTUAL_VOID |
Optimize for one node. More... | |
virtual float | get_gain_threshold_for (const size_t &node_id) VIRTUAL(float) |
Get the gain threshold to use for this node. More... | |
virtual bool | operator== (const IThreshOpt &rhs) const VIRTUAL(bool) |
Protected Member Functions | |
IThreshOpt () | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &, const uint &) |
Friends | |
class | cereal::access |
Find an optimal threshold.
This class is classically used by a forpy::IDecider to optimize the threshold ( \(\tau\)).
Definition at line 23 of file ithreshopt.h.
|
inlinevirtual |
Definition at line 25 of file ithreshopt.h.
|
inlineprotected |
For deserialization.
Definition at line 61 of file ithreshopt.h.
|
virtual |
Validate annotations for usability with this optimizer.
Reimplemented in forpy::ClassificationOpt, and forpy::RegressionOpt.
|
virtual |
Reimplemented in forpy::ClassificationOpt, forpy::RegressionOpt, and forpy::FastClassOpt.
|
virtual |
Get the full entropy for one node before optimization.
Setup tasks can be performed within this function. If the entropy determined is below a certain threshold, the optimization is stopped (see, e.g., forpy::FastDecider).
Reimplemented in forpy::ClassificationOpt, forpy::RegressionOpt, and forpy::FastClassOpt.
|
virtual |
Get the gain threshold to use for this node.
Reimplemented in forpy::ClassificationOpt, and forpy::RegressionOpt.
|
virtual |
Reimplemented in forpy::ClassificationOpt, forpy::RegressionOpt, and forpy::FastClassOpt.
|
virtual |
Optimize for one node.
Reimplemented in forpy::ClassificationOpt, forpy::RegressionOpt, and forpy::FastClassOpt.
|
inlineprivate |
Definition at line 66 of file ithreshopt.h.
|
inlinevirtual |
Whether this threshold optimizer can take into account weights during the optimization.
By default, return false.
Definition at line 34 of file ithreshopt.h.
|
virtual |
Reimplemented in forpy::ClassificationOpt, and forpy::RegressionOpt.
|
friend |
Definition at line 61 of file ithreshopt.h.