TensorFlow - 具有归一化约束的优化

标签 tensorflow

是否有使用 TensorFlow 在 |w|^2==1 等约束下优化向量的实现?

最佳答案

您可以为损失添加软约束:some_constant * (norm(w)- 1)^2但是,据我所知,没有专门用于约束优化的功能。

关于TensorFlow - 具有归一化约束的优化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34411448/

相关文章:

tensorflow - 操作链的自定义渐变

python - tf.enable_eager_execution 必须在程序启动时仅在 SPYDER IDE 中调用

python - Tensorflow:打开 PIL.Image?

GPU 上的 Tensorflow 比 CPU 上的慢

python - MNIST 数据集中的图像是如何转换的?

python - anaconda安装keras时报错./p KERAS_BACKEND= 0<temp.txt

python-3.x - Tensorflow:使用序列设置数组元素

python - 没有名为 tensorflow.contrib 的模块

python - Tensorflow 不收敛于 nx1 整数输入(列向量)

c++ - tensorflow 错误此文件需要编译器和库支持 ISO C++ 2011 标准