ad1908266bd4478886c1d3e667d1fd1cc48f2b69,deepchem/models/tensorgraph/models/sequence_dnn.py,SequenceDNN,__init__,#SequenceDNN#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,42
Before Change
super(SequenceDNN, self).__init__(loss, **kwargs)
self.num_tasks = num_tasks
self.verbose = verbose
self.add(layers.Conv2D(num_filters, kernel_size=kernel_size))
self.add(layers.Dropout(dropout))
self.add(layers.Flatten())
self.add(layers.Dense(self.num_tasks, activation_fn=tf.nn.relu))
After Change
verbose=True,
**kwargs):
super(SequenceDNN, self).__init__(loss, **kwargs)
if not isinstance(num_filters, collections.Sequence) or not isinstance(
kernel_size, collections.Sequence):
raise ValueError("num_filters and kernel_size must be lists")
if not len(num_filters) == len(kernel_size):
raise ValueError("num_filters and kernel_size must be of same length")
n_layers = len(num_filters)
self.num_tasks = num_tasks
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: deepchem/deepchem
Commit Name: ad1908266bd4478886c1d3e667d1fd1cc48f2b69
Time: 2018-07-15
Author: rbharath@stanford.edu
File Name: deepchem/models/tensorgraph/models/sequence_dnn.py
Class Name: SequenceDNN
Method Name: __init__
Project Name: Theano/Theano
Commit Name: 17835f400cf04037b5149f2271d9962378d60f08
Time: 2017-05-05
Author: stevenbocco@gmail.com
File Name: theano/gof/params_type.py
Class Name: ParamsType
Method Name: c_support_code
Project Name: apache/incubator-tvm
Commit Name: e63e08febd682f40a536075998a6839bccccd3c6
Time: 2020-04-04
Author: tqchen@users.noreply.github.com
File Name: python/tvm/driver/build_module.py
Class Name:
Method Name: build