"vscode:/vscode.git/clone" did not exist on "a1c997bd9a4e626b0b75aa2dd8d08d8d2beb0c71"
Unverified Commit e1122233 authored by Dong-Yong Lee's avatar Dong-Yong Lee Committed by GitHub
Browse files

fix: bug fix when penalties are negative (#913)


Co-authored-by: default avatardongyong-lee <dongyong.lee@navercorp.com>
parent 28873a27
......@@ -158,7 +158,7 @@ def _apply_penalties(
continue
p = presence_penalties[i]
f = frequency_penalties[i]
if p < _SAMPLING_EPS and f < _SAMPLING_EPS:
if abs(p) < _SAMPLING_EPS and abs(f) < _SAMPLING_EPS:
continue
indices.append(i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment