TypeError: __init__() takes 1 positional argument but 2 were given #982
-
Hello everyone, Code optimizer =optim.SGD(.1) but I ran into the following problem: Output: File "c:\programdata\anaconda3\lib\site-packages\streamlit\script_runner.py", line 430, in _run_script Can anyone help me out with this, please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey hey. GaussianNB doesn't have any input parameter. Here you're passing an optimizer, which doesn't work. I'm curious, where did you get the idea an optimizer was necessary? |
Beta Was this translation helpful? Give feedback.
Hey hey. GaussianNB doesn't have any input parameter. Here you're passing an optimizer, which doesn't work. I'm curious, where did you get the idea an optimizer was necessary?