Skip to content

Commit

Permalink
Bugfix: Linear regression: Use of correct method for verifying a coun…
Browse files Browse the repository at this point in the history
…terfactual
  • Loading branch information
andreArtelt committed May 12, 2020
1 parent 7769f20 commit e3f37d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceml/sklearn/linearregression.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def solve(self, x_orig, y_target, regularization, features_whitelist, return_as_
if return_as_dict is True:
return self._SklearnCounterfactual__build_result_dict(xcf, y_target, delta)
else:
return xcf, y_target, delta
return xcf, self._model_predict([xcf]), delta


def linearregression_generate_counterfactual(model, x, y_target, features_whitelist=None, regularization="l1", C=1.0, optimizer="mp", return_as_dict=True, done=None):
Expand Down

0 comments on commit e3f37d5

Please sign in to comment.