74672a0cb8d5f42eedb4298c2c5f4ac5390994fc,deepchem/models/tensorgraph/models/scscore.py,Scscore,Scscore_1,#,8

Before Change


  loss = Hingeloss(in_layers=[label, hidden_5])
  tg.set_loss(loss)
  output = Sigmoid(in_layers=[hidden_5])
  tg.add_output(output)

After Change


  dense_product_1 = dense_reactant_1.shared(in_layers=[product_features])
  dense_reactant_2 = Dense(
      out_channels=300, in_layers=[dense_reactant_1], activation_fn=tf.nn.relu)
  dense_product_2 = dense_reactant_2.shared(in_layers=[dense_product_1])
  dense_reactant_3 = Dense(
      out_channels=300, in_layers=[dense_reactant_2], activation_fn=tf.nn.relu)
  dense_product_3 = dense_reactant_3.shared(in_layers=[dense_product_2])
  dense_reactant_4 = Dense(
      out_channels=300, in_layers=[dense_reactant_3], activation_fn=tf.nn.relu)
  dense_product_4 = dense_reactant_4.shared(in_layers=[dense_product_3])
  dense_reactant_5 = Dense(
      out_channels=300, in_layers=[dense_reactant_4], activation_fn=tf.nn.relu)
  dense_product_5 = dense_reactant_5.shared(in_layers=[dense_product_4])

  output_dense = Add(in_layers=[dense_reactant_5, dense_product_5])

  output = Sigmoid(in_layers=[output_dense])
  tg.add_output(output)

  label = Label(shape=(None, 1))

  loss = Hingeloss(in_layers=[label, output])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: 74672a0cb8d5f42eedb4298c2c5f4ac5390994fc
Time: 2018-03-19
Author: abhigyan0987@gmail.com
File Name: deepchem/models/tensorgraph/models/scscore.py
Class Name: Scscore
Method Name: Scscore_1


Project Name: deepchem/deepchem
Commit Name: dc4eba996e003be0331cd78e7ba7c477f30f4e67
Time: 2018-05-23
Author: peastman@stanford.edu
File Name: deepchem/utils/test/test_generator_evaluator.py
Class Name: TestGeneratorEvaluator
Method Name: test_compute_model_performance_multitask_classifier


Project Name: deepchem/deepchem
Commit Name: ec30df0fb62dabd76c37d8ba08c9b89abcd3ed5f
Time: 2019-01-11
Author: vsomnath@student.ethz.ch
File Name: deepchem/models/tensorgraph/models/symmetry_function_regression.py
Class Name: ANIRegression
Method Name: build_graph