SpanBound1 Class Reference

SpanBound for the 1-norm SVM. More...

#include <SpanBound1.h>

Inheritance diagram for SpanBound1:

ErrorFunction

List of all members.

Public Member Functions

 SpanBound1 (bool verbose=false)
 Constructor.
 ~SpanBound1 ()
 Destructor.
double error (Model &model, const Array< double > &input, const Array< double > &target)
 This method computes an upper bound on the leave one out error.
double errorDerivative (Model &model, const Array< double > &input, const Array< double > &target, Array< double > &derivative)
 This method computes an upper bound on the leave one out error as well as its derivative w.r.t.
void setMaxIterations (SharkInt64 maxiter=-1)
 set the maximum number of iterations for the quadratic program solver

Protected Member Functions

double bound (C_SVM *csvm, int p, const Array< double > &input, const Array< double > &target)
double boundDerivative (C_SVM *csvm, int p, const Array< double > &input, const Array< double > &target, Array< double > &derivative)

Protected Attributes

bool verbose
 output the status to stdout?
SharkInt64 maxiter
 maximum number of iterations for the quadratic program solver


Detailed Description

SpanBound for the 1-norm SVM.

Definition at line 55 of file SpanBound1.h.


Constructor & Destructor Documentation

SpanBound1::SpanBound1 ( bool  verbose = false  ) 

Constructor.

Definition at line 50 of file SpanBound1.cpp.

References maxiter.

SpanBound1::~SpanBound1 (  ) 

Destructor.

Definition at line 56 of file SpanBound1.cpp.


Member Function Documentation

double SpanBound1::bound ( C_SVM csvm,
int  p,
const Array< double > &  input,
const Array< double > &  target 
) [protected]

Definition at line 176 of file SpanBound1.cpp.

References C_SVM::get_Cminus(), C_SVM::get_Cplus(), SVM::getKernel(), MetaSVM::getSVM(), and i.

Referenced by error().

double SpanBound1::boundDerivative ( C_SVM csvm,
int  p,
const Array< double > &  input,
const Array< double > &  target,
Array< double > &  derivative 
) [protected]

double SpanBound1::error ( Model model,
const Array< double > &  input,
const Array< double > &  target 
) [virtual]

double SpanBound1::errorDerivative ( Model model,
const Array< double > &  input,
const Array< double > &  target,
Array< double > &  derivative 
) [virtual]

void SpanBound1::setMaxIterations ( SharkInt64  maxiter = -1  )  [inline]

set the maximum number of iterations for the quadratic program solver

Definition at line 76 of file SpanBound1.h.

References maxiter.


Member Data Documentation

SharkInt64 SpanBound1::maxiter [protected]

maximum number of iterations for the quadratic program solver

Definition at line 89 of file SpanBound1.h.

Referenced by error(), errorDerivative(), setMaxIterations(), and SpanBound1().

bool SpanBound1::verbose [protected]

output the status to stdout?

Definition at line 86 of file SpanBound1.h.


The documentation for this class was generated from the following files: