Skip to content

Commit a117397

Browse files
0.10.6
updated rnn
1 parent d113d11 commit a117397

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotPython"
10-
version = "0.10.5"
10+
version = "0.10.6"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/light/regression/rnnlightregression.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ def __init__(
145145
# # Initialize RNN
146146
# # input_size = number of features (= 11)
147147
# # num_layers=1: only a single RNN and not stacked
148-
rnn_units = 64 # self.hparams.l1
149-
fc_units = 64 # self.hparams.l1
148+
rnn_units = self.hparams.l1
149+
fc_units = self.hparams.l1
150150

151151
# # TODO: make this a hyperparameter
152152
rnn_nonlinearity = "relu"
@@ -166,14 +166,14 @@ def __init__(
166166
self.output_layer = nn.Linear(fc_units, self._L_out)
167167

168168
# # Initialize Activation Function and Dropouts
169-
dropout = [0.2, 0, 0]
170-
self.dropout1 = nn.Dropout(dropout[0])
171-
self.dropout2 = nn.Dropout(dropout[1])
172-
self.dropout3 = nn.Dropout(dropout[2])
169+
# dropout = [0.2, 0, 0]
170+
# self.dropout1 = nn.Dropout(dropout[0])
171+
# self.dropout2 = nn.Dropout(dropout[1])
172+
# self.dropout3 = nn.Dropout(dropout[2])
173173
# # TODO: use different dropout for different layers
174-
# self.dropout1 = nn.Dropout(self.hparams.dropout_prob)
175-
# self.dropout2 = nn.Dropout(self.hparams.dropout_prob // 10.0)
176-
# self.dropout3 = nn.Dropout(self.hparams.dropout_prob // 100.0)
174+
self.dropout1 = nn.Dropout(self.hparams.dropout_prob)
175+
self.dropout2 = nn.Dropout(self.hparams.dropout_prob // 10.0)
176+
self.dropout3 = nn.Dropout(self.hparams.dropout_prob // 100.0)
177177

178178
activation_fct = nn.ReLU()
179179
self.activation_fct = activation_fct

0 commit comments

Comments
 (0)