DiSMEC++
|
#include <weighting.h>
Public Member Functions | |
CustomWeighting (DenseRealVector positive_weights, DenseRealVector negative_weights) | |
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 | |
DenseRealVector | m_PositiveWeights |
DenseRealVector | m_NegativeWeights |
Definition at line 74 of file weighting.h.
|
explicit |
Definition at line 70 of file weighting.cpp.
References m_NegativeWeights, and m_PositiveWeights.
|
overridevirtual |
Gets the weight to use for all examples where the label label_id
is absent.
Implements dismec::WeightingScheme.
Definition at line 89 of file weighting.cpp.
References m_NegativeWeights, and dismec::opaque_int_type< Tag, T >::to_index().
|
overridevirtual |
Gets the weight to use for all examples where the label label_id
is present.
Implements dismec::WeightingScheme.
Definition at line 80 of file weighting.cpp.
References m_PositiveWeights, and dismec::opaque_int_type< Tag, T >::to_index().
|
private |
Definition at line 82 of file weighting.h.
Referenced by CustomWeighting(), and get_negative_weight().
|
private |
Definition at line 81 of file weighting.h.
Referenced by CustomWeighting(), and get_positive_weight().