e3bb2410a9667cdc224bc1526211f306cd1ae658,pynndescent/pynndescent_.py,NNDescent,prepare,#NNDescent#,1426

Before Change



    def prepare(self):
        self._init_search_graph()
        self._init_search_function()
        return

    def query(self, query_data, k=10, epsilon=0.1):
        Query the training graph_data for the k nearest neighbors

After Change


        return

    def prepare(self):
        if not hasattr(self, "_search_graph"):
            self._init_search_graph()
        if not hasattr(self, "_search_function"):
            self._init_search_function()
            // Force compilation of the search function (hardcoded k, epsilon)
            query_data = self._raw_data[:1]
            _ = self._search_function(
                query_data, 5, 0.0, self._visited, self.search_rng_state.copy(),
            )
        return

    def query(self, query_data, k=10, epsilon=0.1):
        Query the training graph_data for the k nearest neighbors
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: lmcinnes/pynndescent
Commit Name: e3bb2410a9667cdc224bc1526211f306cd1ae658
Time: 2020-09-01
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: prepare


Project Name: lmcinnes/pynndescent
Commit Name: f0418ff7d64e3ff38246164cdd20a7499096d4fc
Time: 2020-08-26
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: query


Project Name: lmcinnes/pynndescent
Commit Name: e9e388d4490179acb71c9f9648e65bc5862cb3f0
Time: 2020-08-30
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: __getstate__