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

NameError: name 'Ridge' is not defined #1

Open
shantanuo opened this issue May 16, 2019 · 2 comments
Open

NameError: name 'Ridge' is not defined #1

shantanuo opened this issue May 16, 2019 · 2 comments

Comments

@shantanuo
Copy link

Getting an error while trying to run this code snippet:

model = Ridge()
visualizer = ResidualsPlot(model)
visualizer.fit(X_reg_train, y_reg_train)
visualizer.score(X_reg_test, y_reg_test)
g = visualizer.poof()

@parulnith
Copy link
Owner

parulnith commented Jun 30, 2019

Could you share the screenshot of the error?

@shantanuo
Copy link
Author

I do not remember the exact error. But when I initiate a class, I do not see any relevant import. So this statement...

model = Ridge()
visualizer = ResidualsPlot(model)

Will fail. From where do I import these 2 classes?

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

2 participants