Skip to content

Commit

Permalink
lazy_loading/saving dir name no longer controled by random_state para…
Browse files Browse the repository at this point in the history
…m -- they will be completely randoom, so the same random_state will lead to different model tmp folder number
  • Loading branch information
chenyangkang committed Oct 26, 2024
1 parent 26f3271 commit da34854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stemflow/model/AdaSTEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def __init__(
self.lazy_loading_dir = lazy_loading_dir
if self.lazy_loading:
if self.lazy_loading_dir is None:
saving_code = self.rng.integers(1, 1e8)
saving_code = int(np.random.uniform(1, 1e8))
self.lazy_loading_dir = f'./tmp_{saving_code}'

if not verbosity == 0:
Expand Down

0 comments on commit da34854

Please sign in to comment.