Skip to content

Commit

Permalink
Merge pull request #84 from opentensor/activate-blacklist
Browse files Browse the repository at this point in the history
blacklist flag from 1 -> 0
  • Loading branch information
p-ferreira authored Nov 27, 2023
2 parents 6cb7a85 + 67325c1 commit 45fe29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompting/validators/reward/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def reward(self, prompt: str, completion: str, name: str) -> BlacklistRewardEven
and fuzz.partial_ratio(ngram, completion.lower())
> self.partial_ratio_boundary
):
reward_event.reward = 1
reward_event.reward = 0
reward_event.matched_ngram = ngram
reward_event.significance_score = score
return reward_event
Expand Down

0 comments on commit 45fe29a

Please sign in to comment.