The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

541431 (5) [Avatar] Offline
#1
When I run the code in Chapter 10.4.5 where:

decoder_model = Model(
    inputs=[decoder_inputs] + decoder_states_inputs,
    output=[decoder_outputs] + decoder_states)


I get a UserWarning that says "update your Model call to the Keras 2 API: `Model(inputs=[<tf.Tenso..., outputs=[<tf.Tenso...)`
How would I update the above code to conform to Keras 2? Thanks
hobs (58) [Avatar] Offline
#2
Cole is looking into it and if the warning prevents the code from working correctly, we'll fix the the example or the installation instructions at http://github.com/totalgood/nlpia