|
DiSMEC++
|
#include <metrics.h>
Public Member Functions | |
| AbandonmentAtK (long num_labels, long k) | |
| void | update (const pd_info_vec &prediction, const gt_info_vec &labels) override |
| std::unique_ptr< MetricCollectionInterface > | clone () const override |
Public Member Functions inherited from dismec::prediction::InstanceAveragedMetric | |
| InstanceAveragedMetric (long num_labels) | |
| void | reduce (const MetricCollectionInterface &other) override |
| double | value () const |
Public Member Functions inherited from dismec::prediction::MetricCollectionInterface | |
| MetricCollectionInterface (long num_labels) | |
| virtual | ~MetricCollectionInterface ()=default |
| long | num_labels () const |
| Gets the number of labels. More... | |
Private Attributes | |
| long | m_K |
Additional Inherited Members | |
Public Types inherited from dismec::prediction::MetricCollectionInterface | |
| using | gt_info_vec = std::vector< sTrueLabelInfo > |
| using | pd_info_vec = std::vector< sPredLabelInfo > |
Protected Member Functions inherited from dismec::prediction::InstanceAveragedMetric | |
| void | accumulate (double value) |
|
explicit |
Definition at line 147 of file metrics.cpp.
|
overridevirtual |
Implements dismec::prediction::MetricCollectionInterface.
Definition at line 162 of file metrics.cpp.
References m_K, and dismec::prediction::MetricCollectionInterface::num_labels().
|
overridevirtual |
Implements dismec::prediction::MetricCollectionInterface.
Definition at line 150 of file metrics.cpp.
References dismec::prediction::InstanceAveragedMetric::accumulate(), m_K, and dismec::ssize().
|
private |