Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KAN (Kolmogorov-Arnold Network) to Darts #2379

Open
PapadopoulosDimitrios opened this issue May 8, 2024 · 3 comments
Open

Add KAN (Kolmogorov-Arnold Network) to Darts #2379

PapadopoulosDimitrios opened this issue May 8, 2024 · 3 comments
Labels
feature request Use this label to request a new feature
Projects

Comments

@PapadopoulosDimitrios
Copy link

There has been a recent boom of positive comments on the KAN (Kolmogorov-Arnold Network) model. Are you thinking about incorporating it? Repo: https://github.com/KindXiaoming/pykan

@PapadopoulosDimitrios PapadopoulosDimitrios added the triage Issue waiting for triaging label May 8, 2024
@dennisbader
Copy link
Collaborator

Hi @PapadopoulosDimitrios, this could indeed be a great addition to Darts. I'll put it in our backlog.

However, I'm not sure about adding pykan as a dependency, since their dependencies are very strict.

I think we need to investigate a bit more. Maybe we could re-implement only the relevant parts for Darts 🤔

Is this something you'd be willing to contribute to?

@dennisbader dennisbader added this to To do in darts via automation May 13, 2024
@dennisbader dennisbader added feature request Use this label to request a new feature and removed triage Issue waiting for triaging labels May 13, 2024
@dennisbader dennisbader changed the title Adding KAN (Kolmogorov-Arnold Network) in darts Adding KAN (Kolmogorov-Arnold Network) to Darts May 13, 2024
@dennisbader dennisbader changed the title Adding KAN (Kolmogorov-Arnold Network) to Darts Add KAN (Kolmogorov-Arnold Network) to Darts May 13, 2024
@tRosenflanz
Copy link
Contributor

tRosenflanz commented May 22, 2024

Tried replacing nn.Linear with KANLinear from here https://github.com/Blealtan/efficient-kan in the TSMixer and it works quite well. The speed of iterations is slower (clock wise) as expected but fits much quicker per iteration (metrics wise) and I get a much higher overfit suggesting that they are considerably more expressive. It didn't improve my results due to overfitting but I believe it will vary from dataset to dataset

Note: had to fix this Blealtan/efficient-kan#36 to make it work but thats a one line change.

@PapadopoulosDimitrios
Copy link
Author

@dennisbader Unfortunately, I won't be able to contribute due to time constraints.

FYI there's also an sklearn-style implementation ok KAN in: https://github.com/csinva/imodelsX/blob/master/imodelsx/kan/kan_sklearn.py

The general RegressionModel wrapper could be used here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Use this label to request a new feature
Projects
darts
To do
Development

No branches or pull requests

3 participants