-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* changed channel_capacity() to effective_samples() to allow for kish estimate * bumped beta version number * updating doc string * updated tests for effective samples code * flak8 on tests * updating effective samples function * docstyle testing and flake8 * updating entropy calcualtion for effective samples * overloading gamma and updating tests * flake8 * pydocstyle * Update version in README.rst * Update _version.py * updating treatment of gamma="kish", changing gamma=1 treatment and bug fixing sample_compression_1d test * bug fixing in tests and propagating gamma in utils.py * Update README.rst * Update _version.py * gamma --> beta * propagating up beta parameter for functions that call smaple_sompression_1d and compress_weights * running flake8 * allow `str(float)` input for `beta`, useful as optional input to `ncompress` in other functions to be piped through to `effective_samples` * change `utils.compress_weights` to only use `ncompress` kwarg (not `beta`), but if `ncompress` is a string pass on as `ncompress=effective_samples(w, beta=ncompress)` * update `effective_samples` docstring that `beta` also takes string input * use channel capacity (aka `'entropy'`) for compression in `compress_weights` * use `ncompress='entropy'` as default * map `ncompress=True` to `ncompress='entropy'` * change `utils.sample_compression_1d` to only use `ncompress` kwarg (not `beta`) * if `ncompress` is a string pass it on as `ncompress=effective_samples(w, beta=ncompress)` * map `ncompress=True` to `ncompress='entropy'` * update docstring accordingly * fix typos in `effective_samples` docstring * adapt changes to compression in `utils.py` also in `weighted_pandas.py` * use only `ncompress` (not `beta`) in `WeightedDataFrame.compress` and `WeightedSeries.compress`, but allow string input for `ncompress` which gets piped into `beta` * update docstrings accordingly * remove no longer used `beta` kwarg in `sample_compression_1d` in `kde_plot_1d` * update docstring for `ncompress` parameter in `plot.py` for new optional string input * allow string input for `n` in `triangular_sample_compression_2d` to determine `n` through `effective_samples` * add check to `test_triangular_sample_compression_2d` for string input to `n` * change default back to `ncompress=True` * expand `test_effective_samples` to also check for `str(int)` and `str(float)` input * rewrite string option checks for `beta==1` in `effective_samples` to also work for `'1.00'` * add tests to `test_effective_samples` for `beta='1.'` and `beta='1.00'` * changed effective_samples -> neff * Completed coverage * reverting change to test_sample_compression_1d * properly reverting change to test_sample_compression_1d * clarify error message for `ncompress<0` and make more in line with similar error messages about anesthetic 1.0 behaviour * unify and clean up `neff` docstring * further simplify neff docstring by reducing repetition * change defaults for `ncompress` to `'equal'` `'equal'` corresponds to a less arbitrary value than 1000 and a smaller value than for `'entropy'` ensuring speedy explorative plotting. * adapt `test_weighted_pandas` to new `ncompress` defaults for scatter plots * version bump * add test for `ncompress>len(w)` in `test_triangular_sample_compression_2d` to complete coverage --------- Co-authored-by: Lukas Hergt <[email protected]> Co-authored-by: Lukas Hergt <[email protected]> Co-authored-by: Will Handley <[email protected]> Co-authored-by: AdamOrmondroyd <[email protected]>
- Loading branch information
1 parent
7a64948
commit 8a93e0b
Showing
9 changed files
with
187 additions
and
56 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '2.0.0b33' | ||
__version__ = '2.0.0b34' |
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
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
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
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
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.