Naoaki ONO
Naoaki ONO

Reputation: 91

TensorFlow - optimization with normalization constraints

Is there any implementation using TensorFlow to optimize a vector under a constraint such as |w|^2==1 ?

Upvotes: 2

Views: 1022

Answers (1)

Rafał Józefowicz
Rafał Józefowicz

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

Related Questions