61fa8b2692997d6a651498ea18958606b8342158,cde/density_estimator/MDN.py,MixtureDensityNetwork,_build_model,#MixtureDensityNetwork#Any#Any#,227

Before Change


      else:
        x_input = self.X_ph
      // two dense hidden layers with 15 nodes each
      net = tf.layers.dense(x_input, 15, activation=tf.nn.relu)
      net = tf.layers.dense(net, 15, activation=tf.nn.relu)
      self.estimator = net

    // locations and scales of the mixture components

After Change


      self.estimator = net

    // locations and scales of the mixture components
    self.locs = Dense(self.n_centers * self.ndim_y)(net)
    //self.locs = tf.layers.dense(net, self.n_centers * self.ndim_y, activation=None)
    self.locs = locs = tf.reshape(self.locs, (-1, self.n_centers, self.ndim_y))

    self.scales = Dense(self.n_centers * self.ndim_y, activation="softplus")(net)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 61fa8b2692997d6a651498ea18958606b8342158
Time: 2018-03-26
Author: f4bio.ferreira@gmail.com
File Name: cde/density_estimator/MDN.py
Class Name: MixtureDensityNetwork
Method Name: _build_model


Project Name: tensorflow/models
Commit Name: 3311242ac4a0800a122dfb1e49ec577eb6bb5e22
Time: 2020-08-14
Author: 1483586698@qq.com
File Name: research/deep_speech/deep_speech_model.py
Class Name: DeepSpeech2
Method Name: __call__


Project Name: pfnet/optuna
Commit Name: 7741e365ce3cda15f6dce0cfc90b2931124fff29
Time: 2020-01-27
Author: n.a.sch137@gmail.com
File Name: examples/tensorflow_estimator_simple.py
Class Name:
Method Name: create_network