Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 059ed8d

Browse files
setting manual random seed in narxnn tests
1 parent d43cc25 commit 059ed8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎sysidentpy/neural_network/tests/test_narxnn.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
from sysidentpy.basis_function import Fourier, Polynomial
77
from sysidentpy.neural_network import NARXNN
8-
from sysidentpy.utils.generate_data import get_siso_data
98
from sysidentpy.utils.narmax_tools import regressor_code
109

10+
torch.manual_seed(0)
11+
1112

1213
class NARX(nn.Module):
1314
def __init__(self):
@@ -445,9 +446,6 @@ def forward(self, xb):
445446
assert_almost_equal(yhat.mean(), y_test.mean(), decimal=2)
446447

447448

448-
#####
449-
450-
451449
def test_model_predict_fourier():
452450
basis_function = Fourier(degree=1)
453451

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /