![]() |
Ultra 0.9.4
|
#include <multi_dataset.h>
Public Member Functions | |
| multi_dataset ()=default | |
| const D & | selected () const noexcept |
| D & | selected () noexcept |
| const D & | operator[] (dataset_t) const noexcept |
| D & | operator[] (dataset_t) noexcept |
| void | select (dataset_t) noexcept |
Container for multiple datasets with a selectable active one.
| D | a dataset type satisfying the DataSet concept |
This class groups together a fixed set of datasets (training, validation, and test) of the same type and provides convenient access to the currently selected dataset.
|
default |
Constructs an empty multi-dataset.
Each contained dataset is default-constructed. For typical container types, this results in empty datasets.
|
nodiscardnoexcept |
Accesses a dataset by role (const overload).
| [in] | d | the dataset role to access |
|
nodiscardnoexcept |
Accesses a dataset by role.
| [in] | d | the dataset role to access |
|
noexcept |
Selects the active dataset.
| [in] | d | the dataset to select |
Subsequent calls to selected() will refer to the dataset identified by d.
|
nodiscardnoexcept |
Returns the currently selected dataset (const overload).
|
nodiscardnoexcept |
Returns the currently selected dataset.