-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How to use pykan to fit a piecewise function #200
Comments
In this case, it might be more reasonable to try |
By trying an continuous but not differentiable, it works nicely.
|
Another try. It looks nice.
|
Great, it works. Thank you so much.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've experimented with PyKan and discovered its impressive regression capabilities, particularly for modeling nonlinear functional relationships.
I tried to step a bit forward to do regression on a piecewise function. However, the fitting result can be improve significantly. Therefore, I present the implementation here and kindly ask for some suggestions to improve the goodness of fitting. Appreciate very much!
The outcome is
![output](https://private-user-images.githubusercontent.com/9261231/330988995-ee90b61e-585a-4f59-85be-b06f64e4a0e8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2OTA0NTUsIm5iZiI6MTcyMDY5MDE1NSwicGF0aCI6Ii85MjYxMjMxLzMzMDk4ODk5NS1lZTkwYjYxZS01ODVhLTRmNTktODViZS1iMDZmNjRlNGEwZTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTFUMDkyOTE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjRiMWNkYjE2NmUzNzA4ZDlkNjExN2U4MzJjZmZkZjcyZGQyZGJhYzNkNWUzNDMyNDA1OGVkYmZjMGU5YmYxMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.E3G9YpQ9sot_vX1pUg7cHYq-jHB5zJTN-dmNSUNz0IM)
The text was updated successfully, but these errors were encountered: