The SUMO toolbox  2018a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
CrossValidation Class Reference

This measure uses k-fold crossvalidation to gauge the accuracy of the model. More...

Inheritance diagram for CrossValidation:
Inheritance graph
[legend]

Public Member Functions

function CrossValidation (var varargin)
 Class constructor. More...
 
function getQQPlotData ()
 Returns raw quantile-quantile data (e.g., for qqplot) More...
 
function calculateMeasure (var model, var context, var outputIndex)
 Calculates the measure. More...
 
function setErrorFcn (var efun)
 Sets the error function to use. More...
 
function getErrorFcn ()
 Returns the used error function. More...
 
function getFinalTarget ()
 Returns the target (goal) accuracy. More...
 
function getParallelMode ()
 Returns whether we are using parallel computing. More...
 
function getWeight ()
 Returns vector of weights. More...
 
function isEnabled ()
 Returns whether this measures is being used. More...
 
function getTarget ()
 Returns the target (goal) accuracy. More...
 
function processMeasure (var model, var context, var outputIndex)
 Wrapper that calls calculateMeasure. More...
 

Detailed Description

This measure uses k-fold crossvalidation to gauge the accuracy of the model.

Constructor & Destructor Documentation

function CrossValidation ( var  varargin)
inline

Class constructor.

Returns
instance of class

Member Function Documentation

function calculateMeasure ( var  model,
var  context,
var  outputIndex 
)

Calculates the measure.

Calculate the accuracy of the givin model using k-fold crossvalidation.

Parameters
modelsurrogate model
contextstruct of contextual information (optional)
outputIndexfor which output to calculate the measure
Return values
newModelupdated surrogate model (may happen in some measures)
scorescore of the surrogate model
function getErrorFcn ( )
inlineinherited

Returns the used error function.

function getFinalTarget ( )
inlineinherited

Returns the target (goal) accuracy.

function getParallelMode ( )
inlineinherited

Returns whether we are using parallel computing.

function getQQPlotData ( )
inline

Returns raw quantile-quantile data (e.g., for qqplot)

function getTarget ( )
inlineinherited

Returns the target (goal) accuracy.

function getWeight ( )
inlineinherited

Returns vector of weights.

function isEnabled ( )
inlineinherited

Returns whether this measures is being used.

function processMeasure ( var  model,
var  context,
var  outputIndex 
)
inherited

Wrapper that calls calculateMeasure.

This function calls calculateMeasure and replaces NaN/Inf Values.

Parameters
modelsurrogate model
contextstruct of contextual information (optional)
outputIndexfor which output to calculate the measure
Return values
scorescore of the surrogate model
function setErrorFcn ( var  efun)
inlineinherited

Sets the error function to use.


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