Given the current Result set of the optimizer, calculates the validation error using a validation function and hands the results over to the underlying stopping criterion. More...
#include <shark/Algorithms/StoppingCriteria/ValidatedStoppingCriterion.h>
Public Types | |
typedef ValidatedSingleObjectiveResultSet< PointType > | ValidationResultSet |
typedef AbstractStoppingCriterion< ValidationResultSet > | StoppingCriterionType |
typedef SingleObjectiveFunction | ObjectiveFunctionType |
Public Types inherited from shark::AbstractStoppingCriterion< SingleObjectiveResultSet< RealVector > > | |
typedef SingleObjectiveResultSet< RealVector > | ResultSet |
Public Member Functions | |
ValidatedStoppingCriterion (ObjectiveFunctionType *validation, StoppingCriterionType *child) | |
bool | stop (ResultSet const &set) |
returns true if training should stop More... | |
void | reset () |
resets the internal state. call before a new trial More... | |
Protected Attributes | |
ObjectiveFunctionType * | mpe_validation |
StoppingCriterionType * | mpe_child |
Given the current Result set of the optimizer, calculates the validation error using a validation function and hands the results over to the underlying stopping criterion.
Currently only implemented for functions over RealVector
Definition at line 47 of file ValidatedStoppingCriterion.h.
Definition at line 55 of file ValidatedStoppingCriterion.h.
typedef AbstractStoppingCriterion< ValidationResultSet > shark::ValidatedStoppingCriterion::StoppingCriterionType |
Definition at line 54 of file ValidatedStoppingCriterion.h.
typedef ValidatedSingleObjectiveResultSet<PointType> shark::ValidatedStoppingCriterion::ValidationResultSet |
Definition at line 53 of file ValidatedStoppingCriterion.h.
|
inline |
Definition at line 58 of file ValidatedStoppingCriterion.h.
References reset().
|
inlinevirtual |
resets the internal state. call before a new trial
Implements shark::AbstractStoppingCriterion< SingleObjectiveResultSet< RealVector > >.
Definition at line 67 of file ValidatedStoppingCriterion.h.
References mpe_child, and shark::AbstractStoppingCriterion< ResultSetT >::reset().
Referenced by ValidatedStoppingCriterion().
|
inlinevirtual |
returns true if training should stop
Implements shark::AbstractStoppingCriterion< SingleObjectiveResultSet< RealVector > >.
Definition at line 63 of file ValidatedStoppingCriterion.h.
References shark::AbstractObjectiveFunction< PointType, ResultT >::eval(), mpe_child, mpe_validation, and shark::AbstractStoppingCriterion< ResultSetT >::stop().
|
protected |
Definition at line 72 of file ValidatedStoppingCriterion.h.
|
protected |
Definition at line 71 of file ValidatedStoppingCriterion.h.
Referenced by stop().