Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#805 from wangzhen38/bug_fix1
Browse files Browse the repository at this point in the history
update auc
  • Loading branch information
frankwhzhang authored Jul 6, 2022
2 parents 0f1f4da + f5d2cc0 commit 6b99585
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/rank/deepfm/static_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def net(self, input, is_infer=False):

predict_2d = paddle.concat(x=[1 - pred, pred], axis=1)

auc, batch_auc_var, _ = paddle.static.metric_op.auc(
input=predict_2d, label=self.label_input, slide_steps=0)
auc, batch_auc_var, _ = paddle.static.auc(input=predict_2d,
label=self.label_input,
slide_steps=0)

self.inference_target_var = auc
if is_infer:
Expand Down

0 comments on commit 6b99585

Please sign in to comment.