Training Begin e:/B19060708share/ENDING/spectrum_anomaly_detection-master/LSTM.py:177: UserWarning: `model.fit_generator` is deprecated and will be removed in a future version. Please use `Model.fit`, which supports generators. steps_per_epoch=t_len, callbacks=callbacks, validation_data=valid_generator, validation_steps=v_len) 2023-05-16 00:50:29.234124: W tensorflow/c/c_api.cc:291] Operation '{name:'batch_normalization_1/moving_variance/Assign' id:578 op device:{requested: '', assigned: ''} def:{{{node batch_normalization_1/moving_variance/Assign}} = AssignVariableOp[_has_manual_control_dependencies=true, dtype=DT_FLOAT, validate_shape=false](batch_normalization_1/moving_variance, batch_normalization_1/moving_variance/Initializer/ones)}}' was changed by setting attribute after it was run by a session. This mutation will have no effect, and will trigger an error in the future. Either don't modify nodes after running them or create a new session. 我在训练LSTM模型,但是运行文件后终端一直卡在前面这句话,这是运行失败了吗?怎么知道我的模型有没有在训练?
时间: 2023-06-19 21:06:30 浏览: 186
Spectrum-Curve-2.rar_LABVIEW坐标_Spectrum_labview 画图_site:www.pudn
这个警告不是训练失败的原因,只是TensorFlow给出的一个提示。如果你想看到训练过程中的输出,你可以在代码中添加打印语句或者使用TensorBoard来可视化训练过程。在训练过程中,你应该能够看到每个epoch的损失值和准确率等信息。如果训练成功,你会看到损失值逐渐下降,准确率逐渐提高。如果训练失败,你可以看到损失值无法下降或者准确率一直很低。
阅读全文