# Pure-Python Tool Rediscovering Kepler's Law from Just 8 Data Points

Original title: Pure-Python symbolic regression that rediscovered Kepler's law from 8 data point

> Hacker News story 48761788 · language: en · submitted 2026-07-02
> Web version: https://zeli.app/story/48761788
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 5 · by [sade_95](<https://news.ycombinator.com/user?id=sade_95>) · 💬 6
[original](<https://github.com/ariel95500-create/gp-elite>) · [HN discussion](<https://news.ycombinator.com/item?id=48761788>)

## Summary

I built GP_ELITE, a pure Python tool that uses genetic programming to find interpretable mathematical formulas from small datasets. Unlike black-box neural networks, it delivers readable laws, successfully rediscovering Kepler's Third Law with only eight data points. Designed for engineers and scientists, it requires no Julia or GPU, offering robust regression and built-in overfitting protection for real-world experimental data.

## Key quote

> GP_ELITE's niche: zero barrier to entry. A lab engineer, a student, or a technician points at a CSV file and gets a validated law back — without becoming a developer.

## HN discussion (6 comments)

### [ziofill](<https://news.ycombinator.com/item?id=48827463>)

> The battery example makes no sense:
>
> capacity_SOH ≈ 0.913 − 0.352 · tanh( cycle^((temperature/cycle)^0.485) )
>
> I understand this fits the data, but exponents should be dimensionless, what is temperature/cycle?

### [gus_massa](<https://news.ycombinator.com/item?id=48786330>)

> Some minor comments:
>
> What happens if you give the system not only the semi-mayor axis but also the semi-minor axis?
>
> Have you tried with only the 6 planets Kepler know? (I don't expect this to change the result too much.)
>
> Have you tired with noisy data?

### [sinuhe69](<https://news.ycombinator.com/item?id=48827832>)

> And I wonder if somebody has tried with the available galactic data and see if the genetic programming can come up with a better formula than MOND or Einstein's general relativity.
>
> For simple problems as Kepler's law, a quick detour on Desmos will show a perfect fit for power law instantly. In general, there are many important criteria for a better curve fitting (for ex. independent, normal distributed residuals), not just R, so I hope the author has/will incorporate them into the search to create a more robust result.

---

## Cite

- Page: https://zeli.app/story/48761788
- Date: 2026-07-02
- Source: github.com (https://github.com/ariel95500-create/gp-elite)
- Hacker News: https://news.ycombinator.com/item?id=48761788

## Other languages

- zh: https://zeli.app/zh/story/48761788 · markdown: https://zeli.app/zh/story/48761788.md
- ja: https://zeli.app/ja/story/48761788 · markdown: https://zeli.app/ja/story/48761788.md
- ko: https://zeli.app/ko/story/48761788 · markdown: https://zeli.app/ko/story/48761788.md
- de: https://zeli.app/de/story/48761788 · markdown: https://zeli.app/de/story/48761788.md
- es: https://zeli.app/es/story/48761788 · markdown: https://zeli.app/es/story/48761788.md
