KindXiaoming / pykan

Kolmogorov Arnold Networks
MIT License
13.64k stars 1.2k forks source link

fail to use the model in pycharm #163

Open mularo opened 1 month ago

mularo commented 1 month ago

I can run the rode in Jupyter well, but got an error when running in pycharm. from kan import * model = KAN(width=[2,5,1], grid=5, k=3, seed=0)

error: NameError: name 'KAN' is not defined

rzrcrs2 commented 1 month ago

i also cant use in conda/spyder. i do all import requirements but cant use, does not regonize the library.

mularo commented 1 month ago

I can run the rode in Jupyter well, but got an error when running in pycharm. from kan import * model = KAN(width=[2,5,1], grid=5, k=3, seed=0)

error: NameError: name 'KAN' is not defined

I had already solved the problem, the reason is that the name of the .py file is kan.py. And after chaging the file's name, everything is OK.