Skip to content

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

Open
@cllei12

Description

@cllei12

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions