LIBIRWLS
svm_dataset Struct Reference

A dataset. More...

#include <IOStructures.h>

Data Fields

int l
 
int sparse
 
int maxdim
 
double * y
 
struct svm_sample ** x
 
double * quadratic_value
 
struct svm_samplefeatures
 

Detailed Description

A dataset.

This structure represents a dataset, a collection of samples and its associated labels.

Field Documentation

§ features

struct svm_sample* svm_dataset::features

Array of features.

§ l

int svm_dataset::l

If the dataset is labeled or not.

§ maxdim

int svm_dataset::maxdim

The number of features of the dataset.

§ quadratic_value

double* svm_dataset::quadratic_value

The L2 norm of every sample. It is used to compute kernel functions faster.

§ sparse

int svm_dataset::sparse

If the dataset is sparse or not.

§ x

struct svm_sample** svm_dataset::x

Pointer to the first feature of every sample.

§ y

double* svm_dataset::y

The label of every sample.


The documentation for this struct was generated from the following file: