Repository navigation
Releases
Releases · victordavis/legomena
Generalized formula implementation
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
nrather than limited atn<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, .dimensionare all deprecated.LogModel.predict_k()now takes a mandatorydimargument. Best is to passdim = corpus.dimensionso shape of predictions matches shape of realizations.- New dependency
mpmathto serve third party implementation oflerchphi(). Necessary also for future support ofzeta()andpolylog()to onboard competing models.
Minimum viable product release
pip install legomena actually works, and loading it into console/notebook actually gives expected results!