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

One example of obtaining symbolic function by using KAN #189

Open
obisidianouc opened this issue May 15, 2024 · 2 comments
Open

One example of obtaining symbolic function by using KAN #189

obisidianouc opened this issue May 15, 2024 · 2 comments

Comments

@obisidianouc
Copy link

Very interesting work!

I want to contribute an interesting real-world example of using KAN to obtain a symbolic function.

In ocean science, a 75-term expression is used to calculate "density" by using "temperature" and "salinity". I tried to use KAN to find much simpler expression with reasonable accuracy and got good results. The activation shapes also intuitively show that the changes in temperature have more impact on the changes in density compared to salinity.

Example:
https://github.com/obisidianouc/Kan_example.git

happy to discuss!

@KindXiaoming
Copy link
Owner

KindXiaoming commented May 15, 2024

Very cool! I wonder what that 75-term expression looks like? And how accurate is it? Maybe you can try deeper/wider KANs to get more accuracy but less simplicity. Would be cool to plot Pareto Frontiers trading off between accuracy and simplicity.

@obisidianouc
Copy link
Author

Very cool! I wonder what that 75-term expression looks like? And how accurate is it? Maybe you can try deeper/wider KANs to get more accuracy but less simplicity. Would be cool to plot Pareto Frontiers trading off between accuracy and simplicity.

75-term expression is here:

https://github.com/obisidianouc/Kan_example/blob/9ae5502f3cac4762e05fa347aac4e870541102c8/75term.ipynb

I am not familiar with Pareto Frontiers trading off. Could you guide me how to make such plots ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants