ufal / neuralmonkey

An open-source tool for sequence learning in NLP built on TensorFlow.
BSD 3-Clause "New" or "Revised" License
410 stars 104 forks source link

Adversarial classification #771

Closed jlibovicky closed 5 years ago

jlibovicky commented 5 years ago

This PR refactors classifier, such that all tensors are moved to annotated methods. Then it introduces flag for adversarial classification. In this setup, the classifier is optimized for better classification, however, the input to the classifier is optimized to worsen the representation for the classifier via the gradient reversal method.

jlibovicky commented 5 years ago

Šlo by asi udělat adversarial view podobně jako jsou ty gradient blocking view, ale měli bysme jak přes kopírák ten problém s get_dependencies.

jindrahelcl commented 5 years ago

Mrkni na #773

jlibovicky commented 5 years ago

Replaced by #808.