Legomena

Latest version: v1.2.0

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

Scan your dependencies

1.2.0

Generalized `formula_n(n, x)` to replace individual hard-coded `formula_5(x)` functions for `n = 0 -> 5`. Keeping unused legacy functions because they're documented in the original paper and a unit test verifies the new matches the old.

Advantages:
- Can calculate n-legomena k-vector for arbitrarily high `n` rather than limited at `n<6`
- Generalized formula can be evaluated at `x=0, x=1`, removing the troublesome singularities
- No noticeable loss of speed or accuracy

Disadvantages:
- `LogModel.options, .epsilon, .dimension` are all deprecated. `LogModel.predict_k()` now takes a mandatory `dim` argument. Best is to pass `dim = corpus.dimension` so shape of predictions matches shape of realizations.
- New dependency `mpmath` to serve third party implementation of `lerchphi()`. Necessary also for future support of `zeta()` and `polylog()` to onboard competing models.

1.1.0

pip install legomena` actually works, and loading it into console/notebook actually gives expected results!

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.