SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
StreamingFileFromFeatures.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2011 Shashwat Lal Das
8  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
9  */
10 #ifndef __STREAMING_FILEFROMFEATURES_H__
11 #define __STREAMING_FILEFROMFEATURES_H__
12 
13 #include <shogun/lib/config.h>
14 
16 #include <shogun/io/SGIO.h>
17 
18 namespace shogun
19 {
20 class CFeatures;
21 
39 {
40 public:
45 
52 
60 
65 
71  virtual void set_features(CFeatures* feat)
72  {
73  ASSERT(feat)
74  features=feat;
75  }
76 
82  virtual void set_labels(float64_t* lab)
83  {
84  ASSERT(lab)
85  labels=lab;
86  }
87 
89  virtual const char* get_name() const
90  {
91 
92  return "StreamingFileFromFeatures";
93 
94  }
95 
96 protected:
97 
100 
103 };
104 }
105 #endif //__STREAMING_FILEFROMFEATURES_H__
virtual void set_labels(float64_t *lab)
float64_t * labels
Labels (if applicable)
A Streaming File access class.
Definition: StreamingFile.h:34
Class StreamingFileFromFeatures to read vector-by-vector from a CFeatures object. ...
#define ASSERT(x)
Definition: SGIO.h:201
double float64_t
Definition: common.h:50
virtual void set_features(CFeatures *feat)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The class Features is the base class of all feature objects.
Definition: Features.h:68
virtual const char * get_name() const

SHOGUN Machine Learning Toolbox - Documentation