Installation¶
Requirements¶
- Python 3.8 or higher
- NumPy
- rerum (symbolic rewriting engine)
Install from PyPI¶
This installs symlik and its dependencies.
Install from Source¶
Verify Installation¶
from symlik import LikelihoodModel
from symlik.distributions import exponential
# Quick test
model = exponential()
mle, _ = model.mle(data={'x': [1, 2, 3]}, init={'lambda': 1.0})
print(f"MLE: {mle['lambda']:.3f}") # Should print ~0.5
Development Installation¶
For development with testing tools:
This adds pytest, coverage, and code quality tools.