Turi Create
4.0
|
#include <toolkits/evaluation/evaluation_interface-inl.hpp>
Public Member Functions | |
std::string | name () const |
void | init (size_t _n_threads=1) |
void | register_unmapped_example (const size_t &target, const size_t &prediction, size_t thread_id=0) |
void | register_example (const flexible_type &target, const flexible_type &prediction, size_t thread_id=0) |
variant_type | get_metric () |
virtual bool | is_prob_evaluator () const |
virtual bool | is_table_printer_compatible () const |
Computes the classifier accuracy for a set of predictions, where all predictions above the provided threshold are considered positive labels.
accuaracy = num_right / num_examples
where num_right are the things you got right!
Definition at line 704 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Return the final metric.
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 774 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Init the state with a variant type.
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 725 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 in turi::evaluation::roc_curve, turi::evaluation::precision_recall_base, and turi::evaluation::confusion_matrix.
Definition at line 260 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Name of the evaluator.
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 717 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
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 763 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Register a (target, prediction) pair that are unmapped
[in] | target | target of a simple example. |
[in] | prediction | prediction of a single example. |
[in] | thread_id | thread id |
Reimplemented from turi::evaluation::supervised_evaluation_interface.
Definition at line 746 of file evaluation_interface-inl.hpp.