Icepool

Latest version: v1.4.0

Safety actively analyzes 641134 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 14

0.20.1

* Added `one_hot` function.
* Added experimental suit generator that wraps a generator and produces counts for all suits for each value.

0.20.0

* Retired `denominator_method`.
* Renamed `max_depth` parameters to just `depth`.
* Binary operators delegate to `Again`'s behavior.
* Only single outcomes implicity convert to `Die`.
* `marginals` is now a Sequence, and can be iterated over, unpacked, etc.
* `Die.sub()` now expands extra die arguments into their outcomes.

0.19.1

Fix `contains_again` checking of sequences.

0.19.0

New feature: `Again()`, a placeholder that allows to roll again with some modification.

* `**kwargs` are forwarded to the constructor of the yielded or returned die for `sub`, `if_else`, `reduce`, `accumulate`, `apply`, `apply_sorted`.
* Add optional `final_kwargs` method to evaluators.
* Rename `max_depth` parameter of `sub()` to `repeat`.

0.18.0

* Rename `Die.reduce()` to `Die.simplify()` to avoid confusion with the free function `reduce()`.
* Rename `OutcomeCountEvaluator.direction()` to `order()` and add explicitly named `Order` enums.
* Add `is_in`, `count`, and `count_in` methods to dice.
* Add built-in evaluators as convenience functions of `OutcomeCountGenerator`.

0.17.4

* Fixes to `max_depth=None` case of `sub()`.
* This is now marked experimental.

Page 6 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.