TensorFlow.NET icon indicating copy to clipboard operation
TensorFlow.NET copied to clipboard

[BUG Report]: EarlyStop does not stop

Open asaf92 opened this issue 1 year ago • 4 comments

Description

When using EarlyStop and reaching a point where the training should stop, it just repeats the message Restoring model weights from the end of the best epoch: but keeps training.

It looks like it sets stop_training = true correctly, but the value of stop_training is not checked anywhere in FitInternal

Reproduction Steps

No response

Known Workarounds

No response

Configuration and Other Information

No response

asaf92 avatar Sep 10 '23 14:09 asaf92

Released v0.110.3. Can you check if this version works?

Oceania2018 avatar Sep 14 '23 12:09 Oceania2018

Can this issue be closed? @asaf92

Wanglongzhi2001 avatar Sep 18 '23 03:09 Wanglongzhi2001

Released v0.110.3. Can you check if this version works?

The issue still exists even in v0.110.3. The model keeps training while "EarlyStopping" does triger it by changing "Stop_training" to true.

GaijinOtohp avatar Sep 18 '23 22:09 GaijinOtohp

It still exists in v0.110.3 @Wanglongzhi2001

I decompiled and saw that the code wasn't changed

asaf92 avatar Sep 20 '23 08:09 asaf92