机器学习
- model.compile() 是在使用 Keras 库构建深度学习模型时的一个步骤,它用于配置模型的学习过程。
- 二元交叉熵损失函数loss=binarycrossentropy()
- **在 model.fit() 调用期间,Keras 会使用 model.compile() 中定义的配置来执行训练过程。**在 model.compile() 中指定的优化器会用model.fit() 训练过程中的权重更新;在训练过程中,model.fit() 会使用model.compile() 得到的损失函数来评估模型的性能,并根据这个评估来更新权重。
- 激活函数ReLU,g(z)=max{0,z},z<0时g(z)=0,z>0时g(z)=z。