kobyzev-yuri
kobyzev-yuri
I also have this problem with this tutorial code like you show and try to use only 8 B-basis (G-k=8) instead of (G+k=14) in formula and code after 1st cell,...
In https://scikit-learn.org/stable/auto_examples/linear_model/plot_polynomial_interpolation.html we can read that there is also k = 3 "technical knots" from each side of fitted interval. I suppose here something like that and 6 knots are...
Is it possible to use spline coefficients for KAN model activation in way compatible with scipy.interpolate.BSplin? : G = ... k = 3 grid = torch.linspace(-1,1,steps=G+1)[None,:] ... coef = model.act_fun[0].coef...
demo.ipynb error like in screen shot.