Skip to content

Commit cb7b095

Browse files
committed
made the parameters accessible so we can access them for testing
1 parent b1829a2 commit cb7b095

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lkauto/algorithms/user_knn.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
class UserUser(UserKNNScorer):
77
def __init__(self, max_nbrs, min_nbrs=1, min_sim=1e-6, **kwargs):
8+
# store the parameters as an instance variables so we can acces it (for testing)
9+
self.max_nbrs = max_nbrs
10+
self.min_nbrs = min_nbrs
11+
self.min_sim = min_sim
12+
813
config= UserKNNConfig(
914
max_nbrs=max_nbrs,
1015
min_nbrs=min_nbrs,

0 commit comments

Comments
 (0)