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

Bugfix for evaluate.py #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pypge/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,19 @@ def eval_model(modl, vars, X_train, Y_train, err_method, MAXFEV=100):

modl.score, err = Score(Y_train, y_pred, err_method)
if err is not None:
modl.error = "errored while scoring: " + modl.error
modl.error = "errored while scoring: " + err
modl.errored = True
return False

modl.r2, err = Score(Y_train, y_pred, "r2")
if err is not None:
modl.error = "errored while r2'n: " + modl.error
modl.error = "errored while r2'n: " + err
modl.errored = True
return False

modl.evar, err = Score(Y_train, y_pred, "evar")
if err is not None:
modl.error = "errored while evar'n: " + modl.error
modl.error = "errored while evar'n: " + err
modl.errored = True
return False

Expand Down