pykan
pykan copied to clipboard
A question about model.plot() method
When I run examples of code (like from hellokan) method model.plot() didn't plot figures (however parts of it saved inside .figures) but matplotlib running in the same environment produce figures correctly.
When I run examples of code (like from hellokan) method model.plot() didn't plot figures (however parts of it saved inside .figures) but matplotlib running in the same environment produce figures correctly.
I am having the same issue. Only activation function figures are saved as separate images inside the figures folder. I cannot see the whole plot anywhere. How can I plot that?
Could be a problem of matplotlib version. It is suggested to use matplotlib==3.6.2
I have similar problem with matplotlib==3.6.2'.I upgraded to
3.8.4` and I have this same. But I using terminal environment. When I use notebook/google collab this same code works correctly and save whole figure.
I could solve the issue by adding plt.show()
to the end of plot()
method in KAN
class. This is why it's only working in notebooks. You can call savefig()
here as well to save to the file.
I think we should add this method call for more consistent behavior in both local and collab environments.
Yes, this should be definitely added to.