|
DiSMEC++
|
#include "metrics.h"#include "spdlog/fmt/fmt.h"#include "utils/throw_error.h"#include "utils/conversion.h"#include <boost/predef.h>#include <numeric>#include <iostream>#include "doctest.h"Go to the source code of this file.
Namespaces | |
| anonymous_namespace{metrics.cpp} | |
Macros | |
| #define | IMPLEMENT_ADD_METRIC(METRIC, SHORTHAND) |
Typedefs | |
| using | anonymous_namespace{metrics.cpp}::pred_mat_t = Eigen::Matrix< long, 1, Eigen::Dynamic > |
Functions | |
| std::vector< double > | anonymous_namespace{metrics.cpp}::uniform_weights (long k) |
| constexpr const char * | anonymous_namespace{metrics.cpp}::reduction_name (MacroMetricReporter::ReductionType type) |
| auto | anonymous_namespace{metrics.cpp}::make_labels (std::initializer_list< long > init_list) |
| template<class T > | |
| void | anonymous_namespace{metrics.cpp}::update_metric (T &target, std::initializer_list< long > prediction, std::initializer_list< long > labels) |
| TEST_CASE ("precision_at_k") | |
| TEST_CASE ("abandonment_at_k") | |
| #define IMPLEMENT_ADD_METRIC | ( | METRIC, | |
| SHORTHAND | |||
| ) |
Definition at line 205 of file metrics.cpp.
| TEST_CASE | ( | "abandonment_at_k" | ) |
Definition at line 356 of file metrics.cpp.
References anonymous_namespace{metrics.cpp}::update_metric().
| TEST_CASE | ( | "precision_at_k" | ) |
Definition at line 338 of file metrics.cpp.
References anonymous_namespace{metrics.cpp}::update_metric().