8a015062717a7eee6d6325e06ed9fc4d369fedc6,deepchem/models/tests/test_reload.py,,test_smiles2vec_reload,#,973

Before Change



  n_tasks = 1
  data_points = 10
  mols = ["CCCCCCCC"] * data_points
  X = featurizer(mols)

  y = np.random.randint(0, 2, size=(data_points, n_tasks))

After Change


// TODO: This test is a little awkward. The Smiles2Vec model awkwardly depends on a dataset_file being available on disk. This needs to be cleaned up to match the standard model handling API.
def test_smiles2vec_reload():
  Test that smiles2vec models can be saved and reloaded.
  dataset_file = os.path.join(os.path.dirname(__file__), "chembl_25_small.csv")
  max_len = 250
  pad_len = 10
  max_seq_len = 20
  char_to_idx = create_char_to_idx(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: deepchem/deepchem
Commit Name: 8a015062717a7eee6d6325e06ed9fc4d369fedc6
Time: 2020-10-20
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/models/tests/test_reload.py
Class Name:
Method Name: test_smiles2vec_reload


Project Name: tensorlayer/tensorlayer
Commit Name: 6d9a2026ed5b80b24c6e3262f1dfc9380d90aa24
Time: 2018-04-16
Author: contact@jonathandekhtiar.eu
File Name: setup.py
Class Name:
Method Name:


Project Name: asappresearch/sru
Commit Name: 6b3a3f27724c1f6724519ac58431d32c17069205
Time: 2018-10-17
Author: taolei@csail.mit.edu
File Name: sru/sru_functional.py
Class Name:
Method Name: