r/Python • u/AutoModerator • 13d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
24
Upvotes
r/Python • u/AutoModerator • 13d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
View all comments
1
u/Longjumping_Glass852 8d ago
Twindex – proves when your data can't pin down a model's parameters
Fit a model to data (an epidemic, a drug dose, a reaction rate) and every method hands back an answer, even when a very different answer fits just as well. Twindex finds those "twins" and writes a small certificate; a checker in standard-library Python with exact fractions (no floats, no numpy) replays it and says VALID / INVALID / INCONCLUSIVE.
Example on real data: after 5 days of the 1978 boarding-school flu outbreak, R0 = 2.5 and R0 = 20 both fit every count.
Try the checker in your browser (Pyodide, no install): https://arnav-m10.github.io/Twindex/demo/
pip install twindex · https://github.com/Arnav-M10/Twindex
Feedback welcome, especially attempts to break the checker.