mintisan / awesome-kan

A comprehensive collection of KAN(Kolmogorov-Arnold Network)-related resources, including libraries, projects, tutorials, papers, and more, for researchers and developers in the Kolmogorov-Arnold Network field.
2.43k stars 228 forks source link

Kolmogorov Arnold Networks with equinox [kanx] #27

Closed stergiosba closed 5 months ago

stergiosba commented 5 months ago

There seems to be a race to find the best implementation (currently 4) of KANs on the PyTorch side of the ML universe but there is a dearth of efforts on the JAX side (only 1 with flax). The flax implementation seems, well... slow to be frank and not tested.

I had a go at and made a pure equinox based implementation that just works in 125 lines of code: KANX. I hope others find it interesting and use it.

It includes:

Just for reference, the fastest PyTorch implementation takes about 180 seconds for the same validation accuracy (have to perform more head to head comparisons though).

Let me know what you think.

mintisan commented 5 months ago

Thank you for your detailed description, it has been recorded.

Next time, you can submit a pull request.

Thanks again.