f0418ff7d64e3ff38246164cdd20a7499096d4fc,pynndescent/pynndescent_.py,NNDescent,query,#NNDescent#Any#Any#Any#,1308
Before Change
if not self._is_sparse:
// Standard case
query_data = np.asarray(query_data).astype(np.float32, order="C")
self._init_search_graph()
self._init_search_function()
result = self._search_function(
query_data, k, epsilon, self._visited, self.rng_state,
)
After Change
if not self._is_sparse:
// Standard case
query_data = np.asarray(query_data).astype(np.float32, order="C")
if not hasattr(self, "_search_graph"):
self._init_search_graph()
if not hasattr(self, "_search_function"):
self._init_search_function()
result = self._search_function(
query_data, k, epsilon, self._visited, self.rng_state,
)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances 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__
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