ec4516bd0e3df84d3243f6bd0b3395a84fb1c19c,deepchem/data/tests/test_json_loader.py,TestJsonLoader,test_json_loader,#TestJsonLoader#,24

Before Change


    featurizer = SineCoulombMatrix(max_atoms=5)
    loader = JsonLoader(
        tasks=["e_form"],
        json_fields={"structure": dict},
        id_field="formula",
        featurizer=featurizer)
    dataset = loader.create_dataset(input_file, shard_size=1)

After Change


    dataset = loader.create_dataset(input_file, shard_size=None)
    assert dataset.X.shape == (5, 1, 5)

    dataset = loader.create_dataset([input_file, input_file], shard_size=5)
    assert dataset.X.shape == (10, 1, 5)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: ec4516bd0e3df84d3243f6bd0b3395a84fb1c19c
Time: 2020-07-13
Author: nfrey213@gmail.com
File Name: deepchem/data/tests/test_json_loader.py
Class Name: TestJsonLoader
Method Name: test_json_loader


Project Name: idaholab/raven
Commit Name: 0cc342d6749f82ed149dab4e10fa8ae96af1f729
Time: 2019-02-27
Author: andrea.alfonsi@inl.gov
File Name: framework/h5py_interface_creator.py
Class Name: hdf5Database
Method Name: __createObjFromFile


Project Name: idaholab/raven
Commit Name: 0cc342d6749f82ed149dab4e10fa8ae96af1f729
Time: 2019-02-27
Author: andrea.alfonsi@inl.gov
File Name: framework/h5py_interface_creator.py
Class Name: hdf5Database
Method Name: __init__