QuickRank  v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
types.h
Go to the documentation of this file.
1 /*
2  * QuickRank - A C++ suite of Learning to Rank algorithms
3  * Webpage: http://quickrank.isti.cnr.it/
4  * Contact: quickrank@isti.cnr.it
5  *
6  * Unless explicitly acquired and licensed from Licensor under another
7  * license, the contents of this file are subject to the Reciprocal Public
8  * License ("RPL") Version 1.5, or subsequent versions as allowed by the RPL,
9  * and You may not copy or use this file in either source code or executable
10  * form, except in compliance with the terms and conditions of the RPL.
11  *
12  * All software distributed under the RPL is provided strictly on an "AS
13  * IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND
14  * LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
15  * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16  * PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RPL for specific
17  * language governing rights and limitations under the RPL.
18  *
19  * Contributor:
20  * HPC. Laboratory - ISTI - CNR - http://hpc.isti.cnr.it/
21  */
22 #pragma once
23 
24 #include <vector>
25 #include "utils/symmatrix.h"
26 
27 namespace quickrank {
28 
29 typedef float Label; /// data type for instance truth label
30 typedef double Score; /// data type for instance predicted label
31 typedef float Feature; /// data type for instance feature
32 typedef unsigned int QueryID; /// data type for QueryID in L-t-R datasets
33 typedef double MetricScore; /// data type for evaluation metric final outcome
34 
35 typedef SymMatrix<double>
36  Jacobian; /// data type for a Metric's Jacobian Matrix
37 
38 } // namespace quickrank
Definition: dataset.cc:28
SymMatrix< double > Jacobian
data type for evaluation metric final outcome
Definition: types.h:36
float Feature
data type for instance predicted label
Definition: types.h:31
Definition: symmatrix.h:35
unsigned int QueryID
data type for instance feature
Definition: types.h:32
double Score
data type for instance truth label
Definition: types.h:30
float Label
Definition: types.h:29
double MetricScore
data type for QueryID in L-t-R datasets
Definition: types.h:33