12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #ifndef _NICE_OBJREC_GPREGRESSIONOPTIMIZATIONPROBLEMINCLUDE
- #define _NICE_OBJREC_GPREGRESSIONOPTIMIZATIONPROBLEMINCLUDE
- #include "core/vector/VVector.h"
- #include "vislearning/math/kernels/ParameterizedKernel.h"
- #include "core/optimization/gradientBased/OptimizationProblemFirst.h"
- #include "vislearning/math/kernels/KernelData.h"
- #include "vislearning/math/kernels/TraceApproximation.h"
- #include "modelselcrit/GPMSCLooEstimates.h"
- namespace OBJREC {
-
- class GPRegressionOptimizationProblem : public NICE::OptimizationProblemFirst
- {
- protected:
- KernelData *kernelData;
-
- NICE::VVector y;
- double bestAvgLooError;
- NICE::Vector bestLooParameters;
-
- ParameterizedKernel *kernel;
- bool verbose;
-
- const GPMSCLooLikelihoodRegression *modelselcrit;
-
- const TraceApproximation *traceApproximation;
-
-
- public:
-
-
- GPRegressionOptimizationProblem ( KernelData *kernelData, const NICE::Vector & y,
- ParameterizedKernel *kernel, bool verbose = false,
- const GPMSCLooLikelihoodRegression *modelselcrit = NULL,
- const TraceApproximation *traceApproximation = NULL );
- GPRegressionOptimizationProblem ( KernelData *kernelData, const NICE::VVector & y,
- ParameterizedKernel *kernel, bool verbose = false,
- const GPMSCLooLikelihoodRegression *modelselcrit = NULL,
- const TraceApproximation *traceApproximation = NULL );
- double computeObjective();
- void computeGradient( NICE::Vector& newGradient );
- void setParameters ( const NICE::Vector & newParameters ) { parameters() = newParameters; };
- void useLooParameters ();
-
- void update();
- };
- }
- #endif
|