CVB++ 14.0
HoldoutTestResultFactory Class Reference

Factory object for holdout tests. More...

#include <cvb/polimago/holdout_test_result_factory.hpp>

Inherits TestResultFactory.

Public Member Functions

 HoldoutTestResultFactory ()
 Constructor. More...
 
InterpolationType Interpolation () const noexcept
 Gets the interpolation setting to be used for generating this object. More...
 
void SetInterpolation (InterpolationType interpolation) noexcept
 Sets the interpolation setting to be used for generating this object. Using interpolation will generate less artifacts, but requires more processor time. More...
 
double Lambda () const noexcept
 Gets the regularization value to be used for generating the object. More...
 
void SetLambda (double lambda)
 Sets the regularization value to be used for generating the object. Possible values range from 0 to 10, good starting values for experiments are usually around 0.01. More...
 
String Preprocessing () const
 Get preprocessing code with which the object is to be generated. More...
 
void SetPreprocessing (const String &code)
 Set preprocessing code with which the object is to be generated. More...
 
int FeatureResolution () const noexcept
 Gets the feature resolution (determines the size of the classification retina. More...
 
void SetFeatureResolution (int featureResolution)
 Sets the feature resolution (determines the size of the classification retina). More...
 

Detailed Description

Factory object for holdout tests.

Constructor & Destructor Documentation

◆ HoldoutTestResultFactory()

Constructor.

Exceptions
Anyexception derived from std::exception including CvbException.

Member Function Documentation

◆ FeatureResolution()

int FeatureResolution ( ) const
inlinenoexcept

Gets the feature resolution (determines the size of the classification retina.

Returns
The feature resolution value.
Exceptions
Doesnot throw any exception.

◆ Interpolation()

InterpolationType Interpolation ( ) const
inlinenoexcept

Gets the interpolation setting to be used for generating this object.

Returns
The interpolation value.
Exceptions
Doesnot throw any exception.

◆ Lambda()

double Lambda ( ) const
inlinenoexcept

Gets the regularization value to be used for generating the object.

Returns
The lambda value.
Exceptions
Doesnot throw any exception.

◆ Preprocessing()

String Preprocessing ( ) const
inline

Get preprocessing code with which the object is to be generated.

Returns
The preprocessing code.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetFeatureResolution()

void SetFeatureResolution ( int  featureResolution)
inline

Sets the feature resolution (determines the size of the classification retina).

Parameters
[in]featureResolutionThe feature resolution value.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetInterpolation()

void SetInterpolation ( InterpolationType  interpolation)
inlinenoexcept

Sets the interpolation setting to be used for generating this object. Using interpolation will generate less artifacts, but requires more processor time.

Parameters
[in]interpolationThe interpolation value.
Exceptions
Doesnot throw any exception.

◆ SetLambda()

void SetLambda ( double  lambda)
inline

Sets the regularization value to be used for generating the object. Possible values range from 0 to 10, good starting values for experiments are usually around 0.01.

Parameters
[in]lambdaThe lambda value.
Exceptions
Anyexception derived from std::exception including CvbException.

◆ SetPreprocessing()

void SetPreprocessing ( const String code)
inline

Set preprocessing code with which the object is to be generated.

Parameters
[in]codeThe preprocessing code.
Exceptions
Anyexception derived from std::exception including CvbException.