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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: eth-cscs/reframe
Commit Name: 94bcd890a4d896511fe5b82c0099764ab7b78936
Time: 2021-01-18
Author: jotero@cscs.ch
File Name: reframe/core/variables.py
Class Name: VarSpace
Method Name: join


Project Name: eth-cscs/reframe
Commit Name: 94bcd890a4d896511fe5b82c0099764ab7b78936
Time: 2021-01-18
Author: jotero@cscs.ch
File Name: reframe/core/variables.py
Class Name: VarSpace
Method Name: extend