56fee2a817dd9e014029b2e26d225f98faf4fbc0,examples/low_data/toxcast_maml.py,,,#,8

Before Change



task_molecules = []
for i in range(n_tasks):
  task_molecules.append(w[:, i].nonzero()[0])

// Create the model to train.

After Change



task_molecules = []
for i in range(n_tasks):
  positives = [j for j in range(n_molecules) if w[j, i] > 0 and y[j, i] == 1]
  negatives = [j for j in range(n_molecules) if w[j, i] > 0 and y[j, i] == 0]
  task_molecules.append(
      np.concatenate(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: 56fee2a817dd9e014029b2e26d225f98faf4fbc0
Time: 2017-08-17
Author: peastman@stanford.edu
File Name: examples/low_data/toxcast_maml.py
Class Name:
Method Name:


Project Name: rusty1s/pytorch_geometric
Commit Name: 0a564b7177b07fae63866bf49cbcf2e689710d6d
Time: 2020-02-28
Author: todoaskit@gmail.com
File Name: torch_geometric/utils/negative_sampling.py
Class Name:
Method Name: negative_sampling


Project Name: aertslab/pySCENIC
Commit Name: 6d6a32dd677aa6097c4e77b359f81989c3e949af
Time: 2018-04-05
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/rnkdb.py
Class Name:
Method Name: build_rankings