Skip to content

Commit e657a09

Browse files
authored
RandSelectNegativeSample() --> RandSelectNegativeSamples()
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
1 parent b025f3e commit e657a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/py3.x/16.RecommenderSystems/test_lfm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
# 负样本采样过程
5-
def RandomSelectNegativeSample(self, items):
5+
def RandSelectNegativeSamples(self, items):
66
ret = {key: 1 for key in items}
77
n = 0
88
for i in range(0, len(items) * 3):

0 commit comments

Comments
 (0)