Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample pickle #31

Merged
merged 11 commits into from
Dec 22, 2019
Merged

Sample pickle #31

merged 11 commits into from
Dec 22, 2019

Conversation

mathematicalmichael
Copy link
Owner

this PR turns sio.loadmat and sio.savemat (from scipy.io) into a pickle process.
this allows SciPy to get upgraded and addresses UT-CHG#360 and UT-CHG#357 and UT-CHG#366

@codecov
Copy link

codecov bot commented Dec 22, 2019

Codecov Report

Merging #31 into sample will decrease coverage by 0.02%.
The diff coverage is 65.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           sample      #31      +/-   ##
==========================================
- Coverage   79.75%   79.72%   -0.03%     
==========================================
  Files          23       23              
  Lines        5325     5333       +8     
==========================================
+ Hits         4247     4252       +5     
- Misses       1078     1081       +3
Impacted Files Coverage Δ
bet/sampling/adaptiveSampling.py 83.87% <50%> (-0.38%) ⬇️
bet/sampling/basicSampling.py 80.86% <66.66%> (-0.09%) ⬇️
bet/sample.py 79.34% <70.83%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 243d446...8842274. Read the comment docs.

@mathematicalmichael mathematicalmichael merged commit 2da5b00 into sample Dec 22, 2019
mathematicalmichael added a commit that referenced this pull request Jan 12, 2020
* adding TEMPORARY files for CI.

* adding support for more types of kwd args.

* added support for tuple and list.

* linting and io ptr setting.

* resiliency to overwriting observed distribution.

* choose outputs method

* linting.

* whitespace.

* fix tests with sample.

* SET_IO PTR REMOVED FROM PROB

* clean up lines.

* scaffolding for distributions

* Revert "clean up lines."

This reverts commit 4db6347.

* Revert "SET_IO PTR REMOVED FROM PROB"

This reverts commit 40a7267.

* Revert "Revert "SET_IO PTR REMOVED FROM PROB""

This reverts commit 862f70b.

* fixed test.

* Revert "Revert "clean up lines.""

This reverts commit 845e77f.

* domain inference and rvs support

* support for kde rvs

* typo.

* self missing

* whitespace.

* ANSATZ CHANGE IN PROB

* hasattr fix.

* typo caused tests to fail.

* pdf and cdf now handle KDE object.

* MC estimate for probabilities.

* TESTS PASS FOR EMULATED PROBS.

* silence the hounds.

* travis simplified down.

* passing tests and several added functions.

* tests passing, WIP

* WIP

* tests passing and whole ton of code added.

* linting

* BUGS FIXED FOR SAMPLING.

* linting.

* minor bugfixes.

* linting.

* bug fixes.

* bug fixes and architecture changes

* scipy version lock.

* sampling tests begun.

* linting.

* manual linting.

* docstrings.

* local overwriting tests now pass.

* WIP. NEEDS REFACTOR.

* TESTS PASSING FINALLY.

* removed redundant method.

* test passing and inverse problem being solved correctly.

* changes so tests pass in higher dimensions!

* no longer does setting the observed overwrite the reference value. must set it explictly.

* tests failing for dimensions both == 1.

* tests now pass in all the dimensions.

* nonrepeated data-driven mode first passing test.

* caught typo.

* tests now passing, likelihood working properly.

* travis file matplotlib re-added for 2.7 to pass, re-aligned setup file for comparison class that is being added to master.

* cover.

* linting.

* scipy import for (still untested) noise-setting.

* resolving some hound-found issues. need more tests for loss function.

* moved line incorrectly.

* linting.

* made std test more robust to sizes.

* removed non-ASCII character from test docs so that tests would pass in python 2.7

* better coverage and tests.

* coverage up to 77

* linting.

* to-do note.

* linting.

* fix bug and more linting.

* fixed failing tests due to typos.

* fixed broken tests and improved coverage ever so slightly.

* repeated tests pass.

* copyright notice.

* addressing some linting issues.

* line overflows.

* info on data driven status from predited.

* linting.

* linting.

* fix unused variables.

* typo.

* fixed typo and some line overflows.

* adding reference value tests.

* autopep linting.

* dimensions fix in basicSampling test.

* WIP

* added successful test for add_data

* fix inheritance tests.

* passing tests for adding data with reference parameter

* passing tests.

* fix typo.

* attempting to fix broken test.

* setup incremented and re-styled to match comparison branch.

* fixed some coverage and deprecation.

* linting.

* fixed behavior of set_data

* linting.

* adding data tests.

* another test for calcP.

* attempt to address coverage in calculateError.

* added methods to aid compatibility with old approach.

* coverage for slicing functions.

* more tests.

* linting.

* attempt to fix broken build.

* likelihood test revision.

* set predicted for likelihood.

* refactor setting data.

* removed test for calculateError

* fixed parallel generation of samples.

* remove pushforward approximation in test.

* revert test.

* serial now loads distribution information.

* distribution loading and saving now works in mat files both in parallel and serial

* refactored set_initial

* linting and cleanup.

* fixed test by using appropriate default value.

* fixed backward incompatible change.

* vim files added to gitignore.

* fixed repeated sampling test to take any length data.

* linting.

* more aggressive linting.

* linting (manually)

* linting (autopep)

* sed replacement for loggin.warn into warning.

* linting after warn.

* full sweep autolinting.

* autolint

* re-added disc.local_to_global. all tests except sample.py pass

* more tests pass but some still fail.

* copy setup.

* overwrite den with None when generating samples.

* accept/reject WIP.

* typo.

* linting.

* travis testing temporarily.

* stylistic changes.

* WIP on parallel pdf.

* adding test file.

* small changes.

* kde tests WIP

* fixed tests.

* autopep linting.

* travis.

* test commit

* linting, comments.

* STABLE. Tests Pass in parallel. needs cleanup.

* reincluded test.

* removed extraneous file added by accident.

* autolinting.

* whitespace.

* line indent.

* whitespacing and typos

* silence the hounds. manual linting.

* manual linting.

* whitespace.

* autopep linting.

* Sample pickle (#31)

* pickling.

* unlocked scipy version once pickle replaced sio.load/savemat

* adding back in passing tests.

* cleanup.

* dont skip test now.

* manual linting.

* manual linting.

* manual linting.

* manual linting.

* drop 2.7 tests.

* try to get travis passing.

* fix some testing bugs.

* found random sampling ignored domain in bsam.

* typo.

* hotfix for compare

* bugfix comparison.

* hotfix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant