Ultra 0.9.4
Loading...
Searching...
No Matches
ultra::as_is_validation Class Referencefinal

#include <validation_strategy.h>

Inheritance diagram for ultra::as_is_validation:
ultra::validation_strategy

Public Member Functions

evaluation_context training_setup (unsigned) noexcept override
evaluation_context shake (unsigned) noexcept override
bool validation_setup (unsigned) noexcept override
std::unique_ptr< validation_strategy > clone () const override

Detailed Description

A "null object" implementation of validation_strategy.

Implements the interface of a validation_strategy with empty body methods (it's very predictable and has no side effects: it does nothing).

See also
https://en.wikipedia.org/wiki/Null_Object_pattern

Member Function Documentation

◆ clone()

std::unique_ptr< validation_strategy > ultra::as_is_validation::clone ( ) const
inlinenodiscardoverridevirtual

◆ shake()

evaluation_context ultra::as_is_validation::shake ( unsigned )
inlinenodiscardoverridevirtualnoexcept

Changes the training environment during evolution.

Returns
true if the training environment has changed
Note
Called at the beginning of every generation (multiple times per run).

Implements ultra::validation_strategy.

◆ training_setup()

evaluation_context ultra::as_is_validation::training_setup ( unsigned )
inlinenodiscardoverridevirtualnoexcept

Prepares the data structures / environment needed for training.

Note
Called at the beginning of the evolution (one time per run).

Implements ultra::validation_strategy.

◆ validation_setup()

bool ultra::as_is_validation::validation_setup ( unsigned )
inlinenodiscardoverridevirtualnoexcept

Prepares the data structures / environment needed for validation

Returns
true if a validation environment can be set up; false otherwise
Note
Called at the end of the evolution (one time per run).

Implements ultra::validation_strategy.


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