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

fail to use the model in pycharm #163

Open
mularo opened this issue May 11, 2024 · 3 comments
Open

fail to use the model in pycharm #163

mularo opened this issue May 11, 2024 · 3 comments

Comments

@mularo
Copy link

mularo commented May 11, 2024

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
Copy link

rzrcrs2 commented May 11, 2024

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

@mularo
Copy link
Author

mularo commented May 14, 2024

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.

@ijwky
Copy link

ijwky commented Dec 7, 2024

But my file name is not kan.py, I still got this error.

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

3 participants