9dee73c602d1d4c527cf94df6ffec0b96f028920,basenji/seqnn.py,SeqNN,build_model,#SeqNN#Any#,42

Before Change


    self.is_training = tf.placeholder(tf.bool, name="is_training")
    input_dna = tf.keras.Input(shape=(self.hp.seq_length, 4), name="dna")
    input_reverse = tf.keras.Input(batch_shape=(None,), dtype="bool", name="reverse")
    self.inputs = [input_dna, input_reverse]

    current = input_dna

    //////////////////////////////////////////////////////////////////////////////////////////////////////

After Change


    if self.hp.target_clip is not None:
      current = layers.Clip(0, self.hp.target_clip)(current)

    self.preds = current

    //////////////////////////////////////////////////////////////////////////////////////////////////////
    // compile model
    //////////////////////////////////////////////////////////////////////////////////////////////////////
    self.model = tf.keras.Model(inputs=[self.sequence,self.genome], outputs=self.preds)
    print(self.model.summary())


  def train(self, trainer):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: calico/basenji
Commit Name: 9dee73c602d1d4c527cf94df6ffec0b96f028920
Time: 2019-06-04
Author: drk@calicolabs.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model


Project Name: Hironsan/anago
Commit Name: 7cdd969aeb3af048b1573f4dac1d0a672ef4576b
Time: 2017-07-23
Author: light.tree.1.13@gmail.com
File Name: anago/models/bilstm.py
Class Name: BiLSTM
Method Name: _build_model


Project Name: keras-team/keras
Commit Name: 33ff9dbce230068e65dedb2f41a00c39c70bef93
Time: 2016-08-17
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_wrappers.py
Class Name:
Method Name: test_Bidirectional