482360f06eebf18a460373ea00cd9920e2c8a37a,deepchem/models/tensorgraph/tests/test_layers_pickle.py,,test_Constant_pickle,#,133

Before Change


def test_Constant_pickle():
  tg = TensorGraph()
  feature = Feature(shape=(tg.batch_size, 1))
  layer = Constant(np.expand_dims([17] * tg.batch_size, -1))
  output = Add(in_layers=[feature, layer])
  tg.add_output(output)
  tg.set_loss(output)

After Change


def test_Constant_pickle():
  tg = TensorGraph()
  feature = Feature(shape=(tg.batch_size, 1))
  layer = Constant(np.array([15.0]))
  output = Add(in_layers=[feature, layer])
  tg.add_output(output)
  tg.set_loss(output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: 482360f06eebf18a460373ea00cd9920e2c8a37a
Time: 2017-08-03
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/tests/test_layers_pickle.py
Class Name:
Method Name: test_Constant_pickle


Project Name: deepchem/deepchem
Commit Name: 482360f06eebf18a460373ea00cd9920e2c8a37a
Time: 2017-08-03
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/tests/test_layers_pickle.py
Class Name:
Method Name: test_Variable_pickle


Project Name: modAL-python/modAL
Commit Name: 8e0cb25029e4f1443168adb9313b3f49ae13ea0e
Time: 2020-09-24
Author: hristov@excentos.com
File Name: modAL/expected_error.py
Class Name:
Method Name: expected_error_reduction