Tensorflow.js 中的反向传播
Backpropagation in Tensorflow.js
我正在使用多对一结构制作用于情感分类的循环神经网络。为了使我的 RNN 能够在 HTML 文件中 运行。
为了使问题简短:
What is the Tensorflow.js equivalent of Tensorflow's (the python
version) tf.train.GradientDescentOptimizer(1.0).minimize(loss)
?
通过梯度下降,您可能更喜欢随机梯度下降(随机批次采样),它看起来像:
tf.train.stg(learningRate).minimize(loss)
在此处阅读更多内容:https://js.tensorflow.org/api/latest/#tf.train.Optimizer.minimize
我正在使用多对一结构制作用于情感分类的循环神经网络。为了使我的 RNN 能够在 HTML 文件中 运行。
为了使问题简短:
What is the Tensorflow.js equivalent of Tensorflow's (the python version)
tf.train.GradientDescentOptimizer(1.0).minimize(loss)
?
通过梯度下降,您可能更喜欢随机梯度下降(随机批次采样),它看起来像:
tf.train.stg(learningRate).minimize(loss)
在此处阅读更多内容:https://js.tensorflow.org/api/latest/#tf.train.Optimizer.minimize