Reputation: 91
Is there any implementation using TensorFlow to optimize a vector under a constraint such as |w|^2==1 ?
Upvotes: 2
Views: 1022
Reputation: 6235
You can add a soft constraint to your loss: some_constant * (norm(w)- 1)^2
but, as far as I know, there are no functionalities specifically for constrained optimization.
Upvotes: 3