Turi Create  4.0
unity_evaluation.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #ifndef TURI_UNITY_EVALUATION_H
7 #define TURI_UNITY_EVALUATION_H
8 
9 #include <model_server/lib/toolkit_function_specification.hpp>
10 #include <model_server/lib/toolkit_util.hpp>
11 #include <model_server/lib/unity_base_types.hpp>
12 
13 namespace turi {
14 namespace evaluation {
15 
16 
17 
18 
19 /**
20  * Compute precision/recall for each user given a set of recommendations.
21  * This is specific to the recommender toolkit.
22  * See unity/toolkit/evaluation/metrics.hpp.
23  */
24 toolkit_function_response_type precision_recall_by_user(toolkit_function_invocation& invoke);
25 
26 std::vector<toolkit_function_specification> get_toolkit_function_registration();
27 
28 }
29 }
30 
31 #endif /* TURI_UNITY_EVALUATION_H */