wangz10 / tensorflow-playground

Implementations of some Deep Learning models using tensorflow with scikit-learn like APIs
MIT License
80 stars 34 forks source link

word2vec.py does not have a apply_gradients #5

Closed LopezGG closed 7 years ago

LopezGG commented 7 years ago

the code does not appear to be connected on tensorboard.

LopezGG commented 7 years ago

you might want to chane the optimizer to include self.loss

# Optimizer.
                if self.optimize == 'Adagrad':
                    self.optimizer = tf.train.AdagradOptimizer(self.learning_rate).minimize(self.loss)
                elif self.optimize == 'SGD':
                    self.optimizer = tf.train.GradientDescentOptimizer(self.learning_rate).minimize(self.loss)