OpenNN
Open-source neural networks library
Loading...
Searching...
No Matches
growing_inputs.h
Go to the documentation of this file.
1// OpenNN: Open Neural Networks Library
2// www.opennn.net
3//
4// G R O W I N G I N P U T S C L A S S H E A D E R
5//
6// Artificial Intelligence Techniques SL
7// artelnics@artelnics.com
8
9#pragma once
10
11#include "inputs_selection.h"
12
13namespace opennn
14{
15
17class GrowingInputs final : public InputsSelection
18{
19
20public:
21
24
26 Index get_minimum_inputs_number() const override;
27
29 Index get_maximum_inputs_number() const override;
30
33
35 void set_maximum_inputs_number(const Index);
36
38 void set_minimum_inputs_number(const Index);
39
41 void set_maximum_correlation(const float);
42
44 void set_minimum_correlation(const float);
45
49
51 void from_JSON(const JsonDocument&) override;
52
54 void to_JSON(JsonWriter&) const override;
55
56private:
57
58 Index minimum_inputs_number = 1;
59 Index maximum_inputs_number = 1;
60
61 float minimum_correlation = 0;
62 float maximum_correlation = 0;
63
64};
65
66}
67
68// OpenNN: Open Neural Networks Library.
69// Copyright(C) 2005-2026 Artificial Intelligence Techniques, SL.
70// Licensed under the GNU Lesser General Public License v2.1 or later.
InputsSelectionResults perform_input_selection() override
Runs the greedy input growing procedure until the stopping criterion is met.
void set_minimum_correlation(const float)
Sets the minimum correlation an input must have with the targets to be considered.
void set_minimum_inputs_number(const Index)
Sets the lower bound on the number of inputs that may be selected.
void set_maximum_correlation(const float)
Sets the maximum allowed correlation between selected inputs.
void to_JSON(JsonWriter &) const override
Writes algorithm configuration to a JSON writer.
void set_default()
Restores default bounds, correlation thresholds and stopping criteria.
Index get_maximum_inputs_number() const override
Returns the maximum number of inputs the algorithm is allowed to select.
GrowingInputs(TrainingStrategy *=nullptr)
Constructs the algorithm bound to an optional training strategy.
Index get_minimum_inputs_number() const override
Returns the minimum number of inputs the algorithm is allowed to select.
void from_JSON(const JsonDocument &) override
Loads algorithm configuration from a JSON document.
void set_maximum_inputs_number(const Index)
Sets the upper bound on the number of inputs that may be selected.
InputsSelection(TrainingStrategy *=nullptr)
Constructs the algorithm bound to an optional training strategy.
Definition json.h:72
Definition json.h:85
High-level orchestrator pairing a Loss with an Optimizer for a network/dataset.
Definition training_strategy.h:24
Definition adaptive_moment_estimation.h:14
Aggregated results of an inputs selection run including optimal inputs and error histories.
Definition inputs_selection.h:112