-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add seed fixing option to PySMO's sampling methods to enhance reprodu…
…cibility (#1307) * Fix NumPy array creation error by specifying object type * Removing print and display statements * Adding a function for custom sampling. - User can explicitly define a distribution for sampling of each variable. Sampling options currently available are random, uniform and Gaussian. * Improve errors and warnings * Tests for CustomSampling * running black... * Updating docs and example. * Fix docs * Improve docsstrings. * Improving tests based on feedback * Edit Gaussian sampling bounds to allow for strict enforcement * Add tests to validate for Gaussian bounds * Update test_sampling.py * Update test_sampling.py * Add missing check in init * Improve docs on Gaussian distribution samples. * Update test_sampling.py * Add random seed specification option * Switch seed check to try-except --------- Co-authored-by: Keith Beattie <ksbeattie@lbl.gov> Co-authored-by: Dan Gunter <dkgunter@lbl.gov> Co-authored-by: Andrew Lee <andrew.lee@netl.doe.gov> Co-authored-by: Ludovico Bianchi <lbianchi@lbl.gov>
- Loading branch information
1 parent
f07552d
commit 7ee5489
Showing
2 changed files
with
314 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.