Skip to content

Redundant lines in lazypredict.ipynb giving error #1

Description

@Deepankar-98

Hi @dataprofessor,

I implemented the code given in lazypredict.ipynb and found 2 redundant lines giving several errors.

Also, others have raised this issue so it's not something only on my end.
ISSUE Link: shankarpandala/lazypredict#344

In cell 3 of lazypredict.ipynb this redundant lines is giving error:

models_train,predictions_train = clf.fit(X_train, X_train, y_train, y_train)
models_test,predictions_test = clf.fit(X_train, X_test, y_train, y_test)

and the above 2 lines shd be replaced by:

models_train, predictions_train = clf.fit(X_train, X_test, y_train, y_test)

Similarly for cell 7 the below 2 lines:

models_train,predictions_train = reg.fit(X_train, X_train, y_train, y_train)
models_test,predictions_test = reg.fit(X_train, X_test, y_train, y_test)

shd be replaced by

models_train, predictions_train = reg.fit(X_train, X_test, y_train, y_test)

Can I raise a PR and solve the above mentioned issue.

Thanks,
Deepankar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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