52424aae5e284440efdb4aea30266a69553d1dde,umap/umap_.py,UMAP,transform,#UMAP#Any#,1665
Before Change
X, self._raw_data, metric=self.input_metric, **self._input_metric_kwds
)
indices = np.argsort(dmat)
dists = np.sort(dmat) // TODO: more efficient approach
indices = indices[:, : self.n_neighbors]
dists = dists[:, : self.n_neighbors]
else:
After Change
// If we fit just a single instance then error
if self.embedding_.shape[0] == 1:
raise ValueError("Transform unavailable when model was fit with"
"only a single data sample.")
// If we just have the original input then short circuit things
X = check_array(X, dtype=np.float32, accept_sparse="csr")
x_hash = joblib.hash(X)
if x_hash == self._input_hash:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: lmcinnes/umap
Commit Name: 52424aae5e284440efdb4aea30266a69553d1dde
Time: 2018-09-29
Author: joseph.m.courtney@gmail.com
File Name: umap/umap_.py
Class Name: UMAP
Method Name: transform
Project Name: J535D165/recordlinkage
Commit Name: f0abbde5a393b8781919a2c33474757c07cfee8f
Time: 2016-01-02
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/indexing.py
Class Name:
Method Name: _sortedneighbourhood
Project Name: prody/ProDy
Commit Name: 40c03a027d5333401093dd372b1b2bb0c5d453ca
Time: 2012-10-19
Author: lordnapi@gmail.com
File Name: lib/prody/proteins/pdbclusters.py
Class Name:
Method Name: loadPDBClusters