Vita
|
Holdout validation, aka one round cross-validation or conventional validation. More...
#include <holdout_validation.h>
Inherits vita::validation_strategy.
Public Member Functions | |
holdout_validation (src_problem &) | |
Sets up a hold-out validator. More... | |
void | init (unsigned) override |
During the first run examples are randomly partitioned into two sets according to a given percentage. More... | |
Public Member Functions inherited from vita::validation_strategy | |
virtual void | close (unsigned) |
De-initializes the data structures needed for the validation strategy. More... | |
virtual void | init (unsigned)=0 |
Initializes the data structures needed for the validation strategy. More... | |
virtual bool | shake (unsigned) |
Changes the training environment. More... | |
Holdout validation, aka one round cross-validation or conventional validation.
Holdout validation involves partitioning a sample of data into complementary subsets, performing the analysis on one subset (called the training set) and validating the analysis on the other subset (called the validation set).
Definition at line 31 of file holdout_validation.h.
|
explicit |
Sets up a hold-out validator.
[in] | prob | current problem |
Definition at line 24 of file holdout_validation.cc.
|
overridevirtual |
During the first run examples are randomly partitioned into two sets according to a given percentage.
[in] | run | current run |
Implements vita::validation_strategy.
Definition at line 41 of file holdout_validation.cc.