Turi Create
4.0
|
#include <toolkits/evaluation/evaluation_interface-inl.hpp>
Public Member Functions | |
precision (flexible_type average="macro") | |
std::string | name () const |
variant_type | get_metric () |
flexible_type | get_reference_label () |
bool | is_table_printer_compatible () const |
void | gather_global_metrics () |
void | init (size_t _n_threads=1) |
void | register_example (const flexible_type &target, const flexible_type &prediction, size_t thread_id=0) |
void | gather_counts_and_labels () |
virtual bool | is_prob_evaluator () const |
virtual void | register_unmapped_example (const size_t &target, const size_t &prediction, size_t thread_id=0) |
Compute the precision score.
Definition at line 1195 of file evaluation_interface-inl.hpp.
|
inline |
Constructor.
Definition at line 1202 of file evaluation_interface-inl.hpp.
|
inlineinherited |
Gather all final counts.
Definition at line 874 of file evaluation_interface-inl.hpp.
|
inlineinherited |
Gather global metrics for true_positives and false negatives
Definition at line 1048 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Get the metric!
Implements turi::evaluation::precision_recall_base.
Definition at line 1216 of file evaluation_interface-inl.hpp.
|
inlineinherited |
Get the "highest" label as the reference label.
Definition at line 1012 of file evaluation_interface-inl.hpp.
|
inlinevirtualinherited |
Init the state with a variant type.
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 837 of file evaluation_interface-inl.hpp.
|
inlinevirtualinherited |
Returns true of this evaluator works on probabilities/scores (vs) classes.
Reimplemented in turi::evaluation::roc_curve.
Definition at line 253 of file evaluation_interface-inl.hpp.
|
inlinevirtualinherited |
Returns true of this evaluator can be displayed as a single float value.
Reimplemented from turi::evaluation::confusion_matrix.
Definition at line 1041 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Name of the evaluator.
Implements turi::evaluation::precision_recall_base.
Definition at line 1209 of file evaluation_interface-inl.hpp.
|
inlinevirtualinherited |
Register a (target, prediction) pair
[in] | target | Target of a simple example. |
[in] | prediction | Prediction of a single example. |
[in] | thread_id | Thread id |
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 857 of file evaluation_interface-inl.hpp.
|
inlinevirtualinherited |
Register an unmapped (target, prediction) pair. Use this for performance only. Here the target and prediction are assumed to be integers to avoid flexible_type comparisons and flexible_type hashing.
[in] | target | Target of a simple example. |
[in] | prediction | Prediction of a single example. |
[in] | thread_id | Thread id registering this example. |
Reimplemented in turi::evaluation::classifier_accuracy.
Definition at line 287 of file evaluation_interface-inl.hpp.