张量流梯度下降算法

发布于 2025-01-31 12:08:19 字数 429 浏览 1 评论 0 原文

我目前正在使用TensorFlow在Python工作,并希望通过梯度下降模型而不是随机梯度下降模型来训练我的模型。原因是我想在所有数据点而不是子集上训练我的模型。考虑到我在以下位置找到的张量的不同优化器:我不确定是否可能。有人可以向我解释一下吗?

当前,代码看起来像这样:

model.compile(optimizer = 'adam', loss = 'mse')

我可以填写梯度下降优化器吗?

谢谢你!

I'm currently working in python with tensorflow and would like to train my model with a gradient descent model and not a stochastic gradient descent model. The reason is that I want to train my model on all data points instead of a subset. Considering the different optimizers for tensorflow I found at: https://www.tensorflow.org/api_docs/python/tf/keras/optimizers I'm not sure if this is possible. Could someone explain me if there is way to do this?

Currently the code looks something like this:

model.compile(optimizer = 'adam', loss = 'mse')

Is there a gradient descent optimizer I could just fill in?

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文