0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pytorchで雑に再現性を保証する

Posted at

いちいち関数書くのも面倒だし,雑にやるなら pytorch-lightning の関数を使うのが便利.

from lightning import seed_everything

SEED=42
seed_everything(SEED)

とりあえず2回学習を回して同じ結果が得られることを確認しましょう.
もし同じ結果が得られない場合には他の設定が必要です.

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?