pzivich / Delicatessen

Delicatessen: the Python one-stop sandwich (variance) shop 🥪
https://deli.readthedocs.io/en/latest/index.html
MIT License
22 stars 2 forks source link

v0.4 #10

Closed pzivich closed 2 years ago

pzivich commented 2 years ago

Primary addition is better error handling as mentioned in #8

Previous versions sometimes failed silently. If more init's were provided than rows returned by stacked_equations, then solvers like newton would return values of approximately zero for everything. Therefore, an answer would be returned but in actually the root-finding just failed to improve.

This pull request addresses those errors by making sure there is no mismatch. Notice that I don't cover all mistakes with informative errors. For example, some mistakes will still be caught by IndexError's or when a 2d object and 1d object are incorrectly multiplied together. These will raise other errors

pzivich commented 2 years ago

In v0.4 there are also the following additional changes: re-organizing the internal structure for built-in estimating equations (no changes on the user-side though), more general functions for regression (along with some depreciation of functions), and adding further support for penalized regression.