sample_id.ann.annoy module

class sample_id.ann.annoy.AnnoyMatcher(metadata)[source]

Bases: sample_id.ann.ann.Matcher

Nearest neighbor matcher using annoy.

build()[source]
Return type

None

init_model()[source]

Initialize the model.

Return type

Any

load_model(filepath, prefault=False)[source]

Load this matcher’s model from disk.

Return type

None

nearest_neighbors(fp, k=1)[source]

Fetch nearest neighbors to this fingerprint’s keypoints.

Return type

Sequence[Match]

on_disk_build(filename)[source]
Return type

None

save_model(filepath, prefault=False)[source]

Save this matcher’s model to disk.

Return type

str