Skip to content

TypeError: __init__() takes 1 positional argument but 2 were given #982

Answered by MaxHalford
Emmy-Obasi asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Emmy-Obasi
Comment options

@MaxHalford
Comment options

@Emmy-Obasi
Comment options

@MaxHalford
Comment options

Answer selected by MaxHalford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants