Skip to content

Commit

Permalink
RandSelectNegativeSample() --> RandSelectNegativeSamples()
Browse files Browse the repository at this point in the history
The function is defined as singular on line 5 but it returns multiple samples and is called a plural on line 23.  This PR suggest using the plural form in both places.  Discovered using the tests that were suppressed in apachecn@4e129cd#commitcomment-33663962
  • Loading branch information
cclauss authored May 30, 2019
1 parent b025f3e commit e657a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py3.x/16.RecommenderSystems/test_lfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


# 负样本采样过程
def RandomSelectNegativeSample(self, items):
def RandSelectNegativeSamples(self, items):
ret = {key: 1 for key in items}
n = 0
for i in range(0, len(items) * 3):
Expand Down

0 comments on commit e657a09

Please sign in to comment.