rademacher-p / stats-learn

Python package for statistical learning with a Bayesian focus
https://rademacher-p.github.io/stats-learn/
MIT License
1 stars 0 forks source link

Request-only statistic attributes #7

Open rademacher-p opened 3 years ago

rademacher-p commented 3 years ago

Non-essential attributes, such as mode, mean, etc., should only be determined on user request, rather than for every time the values would change. Especially important for attributes that require computation, such as numerical approximation of statistics.

Search internet for "caching", See functools!!

Suggested improvement:

See random.elements.Mixture.mode treatment for an example