mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Unify base class using new-style (object).
This commit is contained in:
@@ -18,7 +18,7 @@ import numpy as np
|
||||
from annoy import AnnoyIndex
|
||||
|
||||
|
||||
class AnnoyDictionary:
|
||||
class AnnoyDictionary(object):
|
||||
def __init__(self, dict_size, key_width, new_value_shift_coefficient=0.1, batch_size=100, key_error_threshold=0.01):
|
||||
self.max_size = dict_size
|
||||
self.curr_size = 0
|
||||
|
||||
Reference in New Issue
Block a user