BagOfWords.create_indexMethod
create_index(dist::SemiMetric, db::AbstractDatabase; k::Int=16, minrecall::Float64=0.95, verbose=true)

Creates an index for the given database

  • dist: Distance function
  • db: input database
  • k: the number of neighbors (only for optimization purposes)
  • minrecall: controls the quality of the approximation (between 0 and 1)
  • verbose: set verbose=false to reduce the output of the index's building