963fe85a11f1c17dd18579662ca13629140b7f26,cde/density_estimator/MDN.py,MixtureDensityNetwork,_build_model,#MixtureDensityNetwork#Any#Any#,209
Before Change
implementation of the MDN
// create a placeholder for the target
self.y_ph = y_ph = tf.placeholder(tf.float32, [None, self.ndim_y])
//self.y_ph = y_ph = tf.placeholder(tf.float32, [None])
self.n_sample_ph = tf.placeholder(tf.int32, None)
After Change
// create a placeholders
self.Y_ph = tf.placeholder(tf.float32, [None, self.ndim_y])
self.n_sample_ph = tf.placeholder(tf.int32, None)
self.train_phase = tf.placeholder_with_default(tf.Variable(False), None)
// Gaussian noise over Y during training
if self.y_noise_std:
y_noised = self.Y_ph + tf.random_normal(tf.shape(self.Y_ph), stddev=self.y_noise_std)
self.y_input = tf.cond(self.train_phase, lambda: y_noised, lambda: self.Y_ph)
else:
self.y_input = self.Y_ph
// if no external estimator is provided, create a default neural network
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 963fe85a11f1c17dd18579662ca13629140b7f26
Time: 2018-03-25
Author: jonas.rothfuss@gmx.de
File Name: cde/density_estimator/MDN.py
Class Name: MixtureDensityNetwork
Method Name: _build_model
Project Name: geomstats/geomstats
Commit Name: aba65f959fb114e67103a061e92ab5596c557d3d
Time: 2018-12-27
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_exp
Project Name: tensorflow/magenta
Commit Name: d4aaa9a3cb8c437898fdb5a1ec2df94c5202e444
Time: 2018-01-11
Author: curtis@thefjord.org
File Name: magenta/models/music_vae/music_vae_train.py
Class Name:
Method Name: train
Project Name: broadinstitute/keras-rcnn
Commit Name: df93c4e61e7ca1db25f1ee346ac0516685498b02
Time: 2017-08-15
Author: allen.goodman@icloud.com
File Name: keras_rcnn/backend/tensorflow_backend.py
Class Name:
Method Name: bbox_transform_inv