BaderLab / saber

Saber is a deep-learning based tool for information extraction in the biomedical domain. Pull requests are welcome! Note: this is a work in progress. Many things are broken, and the codebase is not stable.
https://baderlab.github.io/saber/
MIT License
102 stars 17 forks source link

Fix random seeds #170

Closed JohnGiorgi closed 5 years ago

JohnGiorgi commented 5 years ago

Quick PR to fix all random seeds.

The random seed is chosen with saber.constants.RANDOM_STATE (42 by default). This value is used to seed the random number generators of pythons random module, numpy, and torch.

This will allow us to run multiple trials with different random seeds and then average them.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 468


Totals Coverage Status
Change from base Build 465: 0.0%
Covered Lines: 1514
Relevant Lines: 1711

💛 - Coveralls