Skip to content

Commit

Permalink
fixed random seed initialization
Browse files Browse the repository at this point in the history
Signed-off-by: yvesnana <[email protected]>
  • Loading branch information
yvesnana committed Apr 24, 2024
1 parent fa00472 commit a9df08a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -281,3 +281,6 @@ ignore_missing_imports = True

[mypy-ruamel.*]
ignore_missing_imports = True

[mypy-xgboost.*]
ignore_missing_imports = True
2 changes: 1 addition & 1 deletion src/gt4sd/frameworks/enzeptional/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def __init__(
self.intervals = sanitize_intervals_with_padding(
self.intervals, minimum_interval_length, len(sequence)
)

self.seed = seed
random.seed(self.seed)

def optimize(
Expand Down

0 comments on commit a9df08a

Please sign in to comment.