def __init__(self, dim, lshashes=None,<EOL>distance=None,<EOL>fetch_vector_filters=None,<EOL>vector_filters=None,<EOL>storage=None):
if lshashes is None: lshashes = [RandomBinaryProjections('<STR_LIT:default>', <NUM_LIT:10>)]<EOL>self.lshashes = lshashes<EOL>if distance is None: distance = CosineDistance()<EOL>self.distance = distance<EOL>if vector_filters is None: vector_filters = [NearestFilter(<NUM_LIT:10>)]<EOL>self.vector_filters = vector_filters<EOL>if fetch_vector_filters is None: fetch_vector_filters = [UniqueFilter()]<EOL>self.fetch_vector_filters = fetch_vector_filters<EOL>if storage is None: storage = MemoryStorage()<EOL>self.storage = storage<EOL>for lshash in self.lshashes:<EOL><INDENT>lshash.reset(dim)<EOL><DEDENT>
Keeps the configuration.