DiSMEC++
|
#include <weighting.h>
Public Member Functions | |
PropensityModel (const DatasetBase *data, double a=0.55, double b=1.5) | |
double | get_propensity (label_id_t label_id) const |
Private Attributes | |
const DatasetBase * | m_Data |
double | m_A |
double | m_B |
double | m_C |
Definition at line 14 of file weighting.h.
|
explicit |
Definition at line 14 of file weighting.cpp.
References m_A, m_B, m_C, m_Data, and dismec::DatasetBase::num_examples().
double PropensityModel::get_propensity | ( | label_id_t | label_id | ) | const |
Definition at line 23 of file weighting.cpp.
References m_A, m_B, m_C, m_Data, and dismec::DatasetBase::num_positives().
Referenced by dismec::PropensityDownWeighting::get_negative_weight(), and dismec::PropensityWeighting::get_positive_weight().
|
private |
Definition at line 20 of file weighting.h.
Referenced by get_propensity(), and PropensityModel().
|
private |
Definition at line 21 of file weighting.h.
Referenced by get_propensity(), and PropensityModel().
|
private |
Definition at line 22 of file weighting.h.
Referenced by get_propensity(), and PropensityModel().
|
private |
Definition at line 19 of file weighting.h.
Referenced by get_propensity(), and PropensityModel().