Loading...
Searching...
No Matches
model_selection.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-only
2// Copyright (C) 2026 Artificial Intelligence Techniques, S.L. and Roberto López González
3
4#pragma once
5
8
9namespace opennn
10{
11
12class Training;
13
15{
16
17public:
18
19 explicit ModelSelection(Training* = nullptr);
20 const Training* get_training() const noexcept { return training; }
21 void set(Training*);
22
24
25 NeuronsSelectionResult perform_neurons_selection() { return neurons_selection.perform_neurons_selection(); }
26
27 InputSelectionResult perform_input_selection() { return input_selection->perform_input_selection(); }
28
29 string get_input_selection_name() const { return input_selection ? input_selection->get_name() : string(); }
30
31 void from_JSON(const JsonDocument&);
32
33 void to_JSON(JsonWriter&) const;
34
35 void save(const filesystem::path&) const;
36 void load(const filesystem::path&);
37
38private:
39
40 void set_input_selection(const string&);
41
42 Training* training = nullptr;
43
44 GrowingNeurons neurons_selection;
45
46 unique_ptr<InputSelection> input_selection;
47};
48
49}
Definition growing_neurons.h:16
Definition json.h:75
Definition json.h:92
const Training * get_training() const noexcept
Definition model_selection.h:20
void load(const filesystem::path &)
void save(const filesystem::path &) const
void from_JSON(const JsonDocument &)
ModelSelection(Training *=nullptr)
NeuronsSelectionResult perform_neurons_selection()
Definition model_selection.h:25
InputSelectionResult perform_input_selection()
Definition model_selection.h:27
void set(Training *)
void to_JSON(JsonWriter &) const
string get_input_selection_name() const
Definition model_selection.h:29
Definition training.h:13
Definition configuration.h:10
Definition input_selection.h:63
Definition growing_neurons.h:70