18 using namespace shogun;
22 SG_UNSTABLE(
"CRealFileFeatures::CRealFileFeatures()",
"\n");
83 int32_t num, int32_t &len,
float64_t* target)
106 SG_INFO(
"loading... be patient.\n");
108 for (int32_t i=0; i<(int32_t) num_vectors; i++)
110 if (!(i % (num_vectors/10+1)))
112 else if (!(i % (num_vectors/200+1)))
143 SG_INFO(
"detected: intsize=%d, doublesize=%d, num_vec=%d, num_feat=%d, preprocd=%d\n", intlen,
doublelen, num_vec, num_feat,
preprocd);
virtual int32_t get_num_vectors() const
int32_t num_vectors
number of vectors in cache
int32_t get_label(int32_t idx)
virtual float64_t * load_feature_matrix()
virtual ~CRealFileFeatures()
virtual float64_t * compute_feature_vector(int32_t num, int32_t &len, float64_t *target=NULL)
The class SimpleFeatures implements dense feature matrices.
The class RealFileFeatures implements a dense double-precision floating point matrix from a file...
float64_t * feature_matrix
void free_feature_matrix()
#define SG_UNSTABLE(func,...)
#define SG_MALLOC(type, len)
void set_num_vectors(int32_t num)
void set_num_features(int32_t num)
int32_t num_features
number of features in cache