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 'np' is not defined in logistic_regr.py #13

Open
cllei12 opened this issue Feb 7, 2022 · 1 comment
Open

NameError: name 'np' is not defined in logistic_regr.py #13

cllei12 opened this issue Feb 7, 2022 · 1 comment

Comments

@cllei12
Copy link

cllei12 commented Feb 7, 2022

Thank you for your wonderful repo! I am learning how to use your Logistic Model Trees, but I find an error in the impelement of Logistic Regression.

In dvanced_ML/model_tree/models/logistic_regr.py, the functionlogistic_regr.prediction() is trying to call np.ones(), but package numpy didn't be imported inlogistic_regr.py. It seems we should add import numpy as np in this script.

@ShubhamZoro
Copy link

I would like to add numpy to the file.

ShubhamZoro added a commit to ShubhamZoro/LearningX that referenced this issue Jul 20, 2023
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