ef3c40a4542966e2dac08cc51710ddedc31fd2d9,deepchem/models/tensorgraph/progressive_multitask.py,ProgressiveMultitaskRegressor,add_adapter,#ProgressiveMultitaskRegressor#Any#Any#Any#,215
Before Change
// prev_layers is a list with elements of size
// (batch_size, layer_sizes[i-1])
prev_layer = Concat(axis=1, in_layers=prev_layers)
with self._get_tf("Graph").as_default():
alpha = TensorWrapper(
tf.Variable(
tf.truncated_normal((1,), stddev=alpha_init_stddev),
name="alpha_layer_%d_task%d" % (i, task)))
trainable_layers.append(alpha)
prev_layer = prev_layer * alpha
dense1 = Dense(
in_layers=[prev_layer],
out_channels=layer_sizes[i - 1],
After Change
prev_layers.append(all_layers[(i - 1, prev_task)])
// prev_layers is a list with elements of size
// (batch_size, layer_sizes[i-1])
if len(prev_layers) == 1:
prev_layer = prev_layers[0]
else:
prev_layer = Concatenate(axis=1)(prev_layers)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: deepchem/deepchem
Commit Name: ef3c40a4542966e2dac08cc51710ddedc31fd2d9
Time: 2019-06-10
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/progressive_multitask.py
Class Name: ProgressiveMultitaskRegressor
Method Name: add_adapter
Project Name: deepchem/deepchem
Commit Name: 1330ea3102315bd79c9c6efdbd8818c8e2a3cb8f
Time: 2019-07-09
Author: peastman@stanford.edu
File Name: deepchem/metalearning/maml.py
Class Name: MAML
Method Name: fit
Project Name: deepchem/deepchem
Commit Name: c96af58e6ab2f85626e51a331e8479da49329f0e
Time: 2017-01-18
Author: joegomes@stanford.edu
File Name: deepchem/models/tensorflow_models/__init__.py
Class Name: TensorflowClassifier
Method Name: predict_proba_on_batch