SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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__

SHOGUN Machine Learning Toolbox - Documentation