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

class used in a function without importing it first #9

Open
shantanuo opened this issue Sep 16, 2020 · 3 comments
Open

class used in a function without importing it first #9

shantanuo opened this issue Sep 16, 2020 · 3 comments

Comments

@shantanuo
Copy link

I tried the "heamy" module as shown in this example and it works as expected.

https://github.com/rushter/heamy/blob/master/examples/walkthrough.ipynb

I expected the line 24 to fail as Sequential class is not imported anywhere in the script. mlp_model function should not complete without error, I guess. What am I missing?

@rushter
Copy link
Owner

rushter commented Sep 16, 2020

You are right. I think I've removed it accidentally. That was a model from keras.

@shantanuo
Copy link
Author

ok. But the point is that even if you have not imported that model from keras, the code runs flawlessly without any error. Does it means that the function mlp_model never really gets called?

@rushter
Copy link
Owner

rushter commented Sep 17, 2020

Yes, because in the code, I didn't add it to the pipeline. I just demonstrated how to use functions.

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