Skip to content

Commit

Permalink
Merge pull request #3120 from moisseev/patch-2
Browse files Browse the repository at this point in the history
[Minor] Fix misprint
  • Loading branch information
vstakhov committed Oct 25, 2019
2 parents 5e40de9 + c78ea25 commit 1207a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/lua/neural.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ local redis_lua_script_can_store_train_vec = [[
if nspam > nham then
-- Apply sampling
local skip_rate = 1.0 - nham / (nspam + 1)
if coun < skip_rate then
if coin < skip_rate then
return {tostring(-(nspam)),'sampled out with probability ' .. tostring(skip_rate)}
end
end
Expand Down

0 comments on commit 1207a81

Please sign in to comment.