Balanced version of the NegativeKTA. More...
#include <KTA.h>
Public Member Functions | |
| NegativeBKTA () | |
| Constructor. | |
| ~NegativeBKTA () | |
| Destructor. | |
| double | error (Model &model, const Array< double > &input, const Array< double > &target) |
| Computes the negative Balanced Kernel Target Alignment between the target and the kernel function output on the input. | |
| double | errorDerivative (Model &model, const Array< double > &input, const Array< double > &target, Array< double > &derivative) |
| Computes the negative Balanced Kernel Target Alignment between the target and the kernel function output on the input. | |
Balanced version of the NegativeKTA.
if
,
if
and
if
.Then we apply the usual definition of the kernel target alignment
where the norm
is defined according to the inner product defined above.
Definition at line 150 of file KTA.h.
| double NegativeBKTA::error | ( | Model & | model, | |
| const Array< double > & | input, | |||
| const Array< double > & | target | |||
| ) | [virtual] |
Computes the negative Balanced Kernel Target Alignment between the target and the kernel function output on the input.
Implements ErrorFunction.
Definition at line 243 of file KTA.cpp.
References KernelFunction::eval(), C_SVM::get_Cminus(), C_SVM::get_Cplus(), SVM::getKernel(), MetaSVM::getSVM(), i, and C_SVM::is2norm().
| double NegativeBKTA::errorDerivative | ( | Model & | model, | |
| const Array< double > & | input, | |||
| const Array< double > & | target, | |||
| Array< double > & | derivative | |||
| ) | [virtual] |
Computes the negative Balanced Kernel Target Alignment between the target and the kernel function output on the input.
The partial derivatives of the negative BKTA w.r.t. the model parameters are returned in the derivative parameter.
Reimplemented from ErrorFunction.
Definition at line 311 of file KTA.cpp.
References KernelFunction::evalDerivative(), C_SVM::get_Cminus(), C_SVM::get_Cplus(), C_SVM::getCRatio(), SVM::getKernel(), Model::getParameterDimension(), MetaSVM::getSVM(), i, and C_SVM::is2norm().