Keras Deep Learning Cookbook
上QQ阅读APP看书,第一时间看更新

Compile the model

Model is compiled using the method signature:

compile(optimizer, loss=None, metrics=None, loss_weights=None, sample_weight_mode=None, weighted_metrics=None, target_tensors=None)

Please refer to the docs for details on what each parameter means: https://keras.io/models/sequential/#the-sequential-model-api.