<p dir="auto">I want to use Hierarchical Navigable Small Worlds (HNSW) and LSH for data classification. How can I modify their fit and train functions???</p>
<p dir="auto">For example if you want to use them like ball tree or kd tree from the scikit learn library for classifying data.</p>
<p dir="auto">There have been some discussion about adding a balanced accuracy metrics (see this <a href="http://en.wikipedia.org/wiki/Accuracy_and_precision" rel="nofollow">article for the definition</a>) on the mailing list. This is a good opportunity for a first contribution.</p>
<p dir="auto">This implies coding the function, checking correctness through tests and highlight your work with documentations. In order to be easily used by many, a balanced accuracy scorer is a good idea.  As a bonus, it could also support <code class="notranslate">sample_weight</code>.</p>