1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef REGRESSIONALGORITHMKERNELINCLUDE
- #define REGRESSIONALGORITHMKERNELINCLUDE
- #include "vislearning/math/kernels/Kernel.h"
- #include "vislearning/math/kernels/KernelData.h"
- #include "RegressionAlgorithm.h"
- namespace OBJREC
- {
- class RegressionAlgorithmKernel : public RegressionAlgorithm
- {
- protected:
- NICE::VVector X;
- NICE::Vector y;
- NICE::Config conf;
- Kernel *kernelFunction;
- public:
-
- RegressionAlgorithmKernel ( const NICE::Config *conf, Kernel *kernelFunction = NULL );
-
- RegressionAlgorithmKernel ( const RegressionAlgorithmKernel & src );
-
- virtual ~RegressionAlgorithmKernel();
-
- virtual void teach ( KernelData *kernelData, const NICE::Vector & y ) = 0;
-
- virtual double predictKernel ( const NICE::Vector & kernelVector, double kernelSelf ) = 0;
-
-
- void teach ( const NICE::VVector & X, const NICE::Vector & y );
-
- double predict ( const NICE::Vector & x );
-
- virtual RegressionAlgorithmKernel *clone ( void ) const
- {
- fthrow ( NICE::Exception, "clone() not yet implemented!\n" );
- }
- };
- }
- #endif
|