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_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 |
virtual void | register_unmapped_example (const size_t &target, const size_t &prediction, size_t thread_id=0) |
Computes the worst case errors between two SArrays.
Definition at line 381 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Return the final metric.
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 427 of file evaluation_interface-inl.hpp.
|
inlinevirtual |
Init the state with a variant type.
Implements turi::evaluation::supervised_evaluation_interface.
Definition at line 400 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 393 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 416 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.