minor issue
sezan92 opened this issue · 4 comments
sezan92 commented
i saw some code mistake in the tensorflow blog of nsl. how can i correct it?
arjung commented
Thanks @sezan92. Could you provide more information on what the mistake is? I don't think you'd be able to edit the blog yourself.
sezan92 commented
here, https://medium.com/tensorflow/introducing-neural-structured-learning-in-tensorflow-5a802efd7afd
adv_model = nsl.keras.AdversarialRegularization(model, adv_config)
This line is mistake. i checked the source code. the adv_config should be third argument. second argument is a dict.
csferng commented
Thanks @sezan92 for reporting the issue. The adv_config is intended to be a keyword argument, so that line should be
adv_model = nsl.keras.AdversarialRegularization(model, adv_config=adv_config)We will update the blog post soon.
csferng commented
The blog post has been updated.