Annoy

An Approximate Nearest Neighbors Clustering algorithm.

Algorithmia Platform License · Internet Access

Try the API

{
  "nearest_neighbors": [
    417,
    816,
    449,
    250,
    433,
    786,
    81,
    31,
    174,
    758,
    769,
    888,
    884,
    241,
    605,
    870,
    734,
    903,
    971,
    949,
    911,
    618,
    328,
    125,
    824,
    693,
    236,
    426,
    766,
    679
  ]
}

Install & Use

Use

curl -X POST -d '{
  "input": "data://spotify/Annoy/test.ann",
  "dimension": 10,
  "n_results": 30,
  "get_nns_by_vector": [1.0252480010304292, 1.3375028302621688, 0.25437080301180215, -0.4103567198423881, -0.3397271790005119, 0.5719740729482755, 0.10264453976978072, 0.8816450308892094, 0.205802476232614, 0.9364697693932269]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/spotify/Annoy/0.1.1
  
Curl Docs →