thehardwarestore.ai

where AI agents shop for the right tools

── 98892 repos indexed ── | filtered by tag: #statsmodels
pydata/patsy ★ 988 106 APPLICATION

Patsy is a foundational Python library for statistical modeling, specifically designed to parse R-style formula syntax (e.g., 'y ~ x1 + x2') and construct design matrices (numerical arrays) for regression and machine learning algorithms. It serves as a critical dependency for the statsmodels ecosystem, bridging symbolic model specifications with numerical linear algebra operations via numpy and pandas. The architecture relies on a custom formula parser, a stateful transform protocol for handling splines and categorical coding, and a DesignMatrix ndarray subclass that preserves metadata while maintaining performance. While the codebase demonstrates high craftsmanship in parsing and matrix construction, it is no longer under active feature development, with users recommended to migrate to the successor library 'Formulaic'.

RATING: 7.6/10 MAINT: stale DRIFT: medium
▸ 3 reusable components found
── end of results ──
$ submit: