12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef _NICE_ONLINELEARNABLEINCLUDE
- #define _NICE_ONLINELEARNABLEINCLUDE
- #include <core/vector/SparseVectorT.h>
- #include <core/vector/VectorT.h>
- namespace NICE {
-
-
-
- class OnlineLearnable {
-
- public:
-
-
-
-
- virtual void addExample( const NICE::SparseVector * newExample,
- const double & newLabel,
- const bool & performOptimizationAfterIncrement = true
- ) = 0;
-
-
-
- virtual void addMultipleExamples( const std::vector< const NICE::SparseVector * > & newExamples,
- const NICE::Vector & newLabels,
- const bool & performOptimizationAfterIncrement = true
- ) = 0;
-
-
- virtual ~OnlineLearnable () {};
-
-
-
-
-
- OnlineLearnable() {};
- };
- }
- #endif
|