Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
softwaredoug committed Aug 13, 2019
1 parent 1dd0a24 commit 1ca7e78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ltr/clickmodels/conversion.py
Expand Up @@ -14,6 +14,7 @@ def conv_aug_attracts(attracts, sessions, costs):
attract = attracts[(session.query, doc.doc_id)]
if doc.click:
if doc.conversion:
# Confirms the attractiveness was real with actual relevance
counts[(session.query, doc.doc_id)] += 1
satisfacts[(session.query, doc.doc_id)] += attract
else:
Expand Down

0 comments on commit 1ca7e78

Please sign in to comment.