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

Trouble Replotting Symbolically Fixed Spline from Equation #339

Open
HAvlani opened this issue Jul 14, 2024 · 4 comments
Open

Trouble Replotting Symbolically Fixed Spline from Equation #339

HAvlani opened this issue Jul 14, 2024 · 4 comments

Comments

@HAvlani
Copy link

HAvlani commented Jul 14, 2024

Hi,

After training my model, I was left with a learned spline on one of the edges (attached in black). After symbolically fixing this spline to a Gaussian, the spline slightly changed (attached in red). Then, to get the equation associated with only this spline, I symbolically fixed every other spline to be linear. The relevant part of the resulting equation was $\displaystyle - 121.91 e^{- 0.17 \left(0.66 - x_{14}\right)^{2}}$. However, when graphing this equation (also attached), I get a graph that looks nothing like the spline. What am I missing here?

Thanks,
Harshil
spline
symobl

Screenshot 2024-07-14 at 3 06 20 PM
@KindXiaoming
Copy link
Owner

KindXiaoming commented Jul 15, 2024

coould you please elaborate more on: (1) how many input dimnesions; (2) KAN shape; (3) which activation is set Gaussian while others linear?

@HAvlani
Copy link
Author

HAvlani commented Jul 15, 2024

There are 14 features, and the model has a single hidden layer of 3 ([14,3,1]). I have set the rightmost activation in the first node as Gaussian ([0,13,2]).

I've attached the model plot, and here is the full equation:
$\displaystyle 60.33 x_{1} + 82.58 x_{10} + 1.16 x_{11} + 259.19 x_{12} - 173.8 x_{13} - 31.97 x_{14} + 117.29 x_{2} + 57.97 x_{3} + 21.78 x_{4} - 67.13 x_{5} - 142.17 x_{6} - 57.51 x_{7} - 116.25 x_{8} - 42.3 x_{9} + 967.58 - 121.91 e^{- 0.17 \left(0.66 - x_{14}\right)^{2}}$

Thank you for your help.
output

@KindXiaoming
Copy link
Owner

what're the x & y axes in your last plot?

@HAvlani
Copy link
Author

HAvlani commented Jul 15, 2024

Sorry about that. Here's a better view of that plot.
Screenshot 2024-07-15 at 3 44 58 PM

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