3 #ifndef FORPY_THRESHOLD_OPTIMIZERS_ITHRESHOPT_H_ 4 #define FORPY_THRESHOLD_OPTIMIZERS_ITHRESHOPT_H_ 7 #include "../util/serialization/basics.h" 9 #include "../data_providers/idataprovider.h" 11 #include "../util/desk.h" 64 friend class cereal::access;
65 template <
class Archive>
69 #endif // FORPY_THRESHOLD_OPTIMIZERS_ITHRESHOPT_H_ virtual bool supports_weights() const
Whether this threshold optimizer can take into account weights during the optimization.
Find an optimal threshold.
A data provider for the training of one tree.
virtual void optimize(Desk *) const VIRTUAL_VOID
Optimize for one node.
virtual bool operator==(const IThreshOpt &rhs) const VIRTUAL(bool)
virtual void transfer_or_run_check(IThreshOpt *other, IDataProvider *dprov) VIRTUAL_VOID
void serialize(Archive &, const uint &)
virtual std::shared_ptr< IThreshOpt > create_duplicate(const uint &random_seed) const VIRTUAL_PTR
virtual void check_annotations(IDataProvider *dprov) VIRTUAL_VOID
Validate annotations for usability with this optimizer.
virtual float get_gain_threshold_for(const size_t &node_id) VIRTUAL(float)
Get the gain threshold to use for this node.
virtual void full_entropy(const IDataProvider &dprov, Desk *) const VIRTUAL_VOID
Get the full entropy for one node before optimization.
unsigned int uint
Convenience typedef for unsigned int.