c29e21cefeaa1461474c26720b3a5e293480c797,snorkel/learning/disc_learning.py,TFNoiseAwareModel,train,#TFNoiseAwareModel#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,101
Before Change
diffs = Y_train.max(axis=1) - Y_train.min(axis=1)
train_idxs = np.where(diffs > 1e-6)[0]
X_train = [X_train[j] for j in train_idxs] if self.representation \
else sparse.csr_matrix(X_train[train_idxs, :])
Y_train = Y_train[train_idxs]
// Create new graph, build network, and start session
self._build_new_graph_session(**kwargs)
After Change
X_train = [X_train[j] for j in train_idxs] if self.representation \
else X_train[train_idxs, :]
if isinstance(X_train, csr_AnnotationMatrix):
X_train = sparse.csr_matrix(X_train[train_idxs, :])
Y_train = Y_train[train_idxs]
// Create new graph, build network, and start session
self._build_new_graph_session(**kwargs)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: snorkel-team/snorkel
Commit Name: c29e21cefeaa1461474c26720b3a5e293480c797
Time: 2017-08-03
Author: hancock.braden@gmail.com
File Name: snorkel/learning/disc_learning.py
Class Name: TFNoiseAwareModel
Method Name: train
Project Name: scipy/scipy
Commit Name: a558af6315114ad0731ba0d86c38415cee752d66
Time: 2007-12-31
Author: wnbell@localhost
File Name: scipy/sparse/csc.py
Class Name: csc_matrix
Method Name: tocsr
Project Name: dmlc/dgl
Commit Name: eafcb7e7f55d385099a9289b275e8371897edb9f
Time: 2018-12-05
Author: minjie.wang@nyu.edu
File Name: python/dgl/backend/mxnet/tensor.py
Class Name:
Method Name: sparse_matrix
Project Name: deeptools/HiCExplorer
Commit Name: a286f40ad724a07c9b6d36737e7584b3da13aacb
Time: 2020-01-15
Author: leila.rabbani@gmail.com
File Name: hicexplorer/hicPCA.py
Class Name:
Method Name: main