123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #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(Exception, "clone() not yet implemented!\n");
- }
- };
- }
- #endif
|