DiSMEC++
|
#include <weighting.h>
Public Member Functions | |
PropensityDownWeighting (PropensityModel model) | |
double | get_positive_weight (label_id_t label_id) const override |
Gets the weight to use for all examples where the label label_id is present. More... | |
double | get_negative_weight (label_id_t label_id) const override |
Gets the weight to use for all examples where the label label_id is absent. More... | |
Public Member Functions inherited from dismec::WeightingScheme | |
virtual | ~WeightingScheme ()=default |
Private Attributes | |
PropensityModel | m_Propensity |
Definition at line 65 of file weighting.h.
|
explicit |
Definition at line 56 of file weighting.cpp.
|
overridevirtual |
Gets the weight to use for all examples where the label label_id
is absent.
Implements dismec::WeightingScheme.
Definition at line 64 of file weighting.cpp.
References dismec::PropensityModel::get_propensity(), and m_Propensity.
|
overridevirtual |
Gets the weight to use for all examples where the label label_id
is present.
Implements dismec::WeightingScheme.
Definition at line 60 of file weighting.cpp.
|
private |
Definition at line 71 of file weighting.h.
Referenced by get_negative_weight().