Vita
validation_strategy.h
Go to the documentation of this file.
1
13#if !defined(VITA_VALIDATION_STRATEGY_H)
14#define VITA_VALIDATION_STRATEGY_H
15
16#include "kernel/common.h"
17
18namespace vita
19{
20
26{
27public:
28 virtual ~validation_strategy() = default;
29
33 virtual void init(unsigned /* run */) = 0;
34
44 virtual bool shake(unsigned /* generation */) { return false; }
45
49 virtual void close(unsigned /* run */) {}
50};
51
61{
62public:
63 void init(unsigned) override {}
64};
65
66} // namespace vita
67
68#endif // include guard
A "null object" implementation of validation_strategy.
void init(unsigned) override
Initializes the data structures needed for the validation strategy.
Interface for specific training / cross validation techniques (e.g.
virtual bool shake(unsigned)
Changes the training environment.
virtual void close(unsigned)
De-initializes the data structures needed for the validation strategy.
virtual void init(unsigned)=0
Initializes the data structures needed for the validation strategy.
The main namespace for the project.