Skip to content

Installation

Requirements

  • Python 3.8 or higher
  • NumPy
  • rerum (symbolic rewriting engine)

Install from PyPI

pip install symlik

This installs symlik and its dependencies.

Install from Source

git clone https://github.com/alextowell/symlik.git
cd symlik
pip install -e .

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:

pip install -e ".[dev]"

This adds pytest, coverage, and code quality tools.