79 unsigned int offset(
size_t i)
const {
119 virtual std::ostream &
put(std::ostream &os)
const;
size_t num_queries_
Definition: vertical_dataset.h:105
Definition: dataset.cc:28
friend std::ostream & operator<<(std::ostream &os, const VerticalDataset &me)
The output stream operator.
Definition: vertical_dataset.h:114
quickrank::Feature * data_
Definition: vertical_dataset.h:108
unsigned int num_instances() const
Returns the number of documents in the dataset.
Definition: vertical_dataset.h:98
unsigned int offset(size_t i) const
Returns the offset in the internal data strcutures of the i-th query results list.
Definition: vertical_dataset.h:79
float Feature
data type for instance predicted label
Definition: types.h:31
quickrank::Label * labels_
Definition: vertical_dataset.h:109
unsigned int num_features() const
Returns the number of features used to represent a document.
Definition: vertical_dataset.h:90
std::unique_ptr< QueryResults > getQueryResults(size_t i) const
Returns the i-th QueryResults in the dataset.
Definition: vertical_dataset.cc:77
virtual ~VerticalDataset()
Definition: vertical_dataset.cc:69
Label getLabel(size_t document_id)
Returns the value of the i-th relevance label.
Definition: vertical_dataset.h:70
quickrank::Feature * at(size_t document_id, size_t feature_id)
Returns a pointer to a specific data item.
Definition: vertical_dataset.h:65
virtual std::ostream & put(std::ostream &os) const
Prints the data reading time stats.
Definition: vertical_dataset.cc:88
This class implements a Dataset to be used for a L-t-R task.
Definition: vertical_dataset.h:46
VerticalDataset(std::shared_ptr< Dataset > h_dataset)
Allocates a vertical dataset by copying and transposing an horizontal one.
Definition: vertical_dataset.cc:30
std::vector< size_t > offsets_
Definition: vertical_dataset.h:110
size_t num_features_
Definition: vertical_dataset.h:104
VerticalDataset & operator=(const VerticalDataset &)=delete
Avoid inefficient copy assignment.
unsigned int num_queries() const
Returns the number of queries in the dataset.
Definition: vertical_dataset.h:94
size_t num_instances_
Definition: vertical_dataset.h:106
float Label
Definition: types.h:29