Comments (4)
Actually the metric values shown in the progress bar are mean values, i.e. mean AUC of 32 steps.
from keras.
That metric in the progress bar is a training metric, computed on the training data. There are N different reasons a training metric might turn out different from the metric you see in a call to evaluate()
(e.g. the state of the model changes at each step, and training behavior might be different from inference behavior).
If you want your displayed metrics to be equivalent to a call to evaluate()
done at the end of the epoch, just pass validation_data=...
in fit()
. This will call evaluate()
at the end of the epoch on the data you passed, and it will display the result in the progress bar under the name "val_auc"
.
from keras.
Actually the metric values shown in the progress bar are mean values, i.e. mean AUC of 32 steps.
But the mean of AUC over batches =/= Final AUC.
from keras.
That metric in the progress bar is a training metric, computed on the training data. There are N different reasons a training metric might turn out different from the metric you see in a call to
evaluate()
(e.g. the state of the model changes at each step, and training behavior might be different from inference behavior).
AFAIK, .evaluate
just takes one dataset so it doesn't distinguish between train/test/val. I understand the progress bar I see during .fit
reflects the changing state of the model, however the model weights should be frozen during evaluate
, and the model should be in inference mode. So based on what you said I don't see why the metrics in .evaluate
's progress bar shouldn't converge to the final metric.
Actually the metric values shown in the progress bar are mean values, i.e. mean AUC of 32 steps.
If this is true, and the progress bar shows a running average of the metric computed over batches, then it is understandable the answers are different. However I still think it's misleading and a better choice would be to show the result of the metric after incorporating each batch. (i.e. the progress bar should show metric.update_state(...).result()
)
from keras.
Related Issues (20)
- Adding `ops.associative_scan`? HOT 2
- Cant predict after training on TPU. HOT 2
- No file or directory found at spiral_keras_model.h5 HOT 1
- Memory leak when using custom DataGenerator HOT 1
- output_padding argument in Conv1DTranspose
- Unable to export reloaded model HOT 1
- [feature request] Add KAN models HOT 1
- Sequentials `_maybe_rebuild` does not make sense
- Ops inconsistency with tensorflow for tril and triu HOT 1
- Bug in Keras 3.4.0: Loading model error 'No such file or directory: 'model.weights.h5' HOT 7
- Irregular Tensors as output from Generator class with batch size = 1 HOT 1
- keras tensorflow tf.keras.layers.Lambda issue returns AttributeError: Exception encountered when calling Lambda.call(). 'TrackedList' object has no attribute 'items' HOT 1
- Keras fails to train on custom generator (Torch backend) HOT 2
- Upsampling2d Skips one sample at index 8388608 (2^23) HOT 2
- `unhashable type: 'DTypePolicy'` may leads problems in keras 3.4.1 HOT 4
- Keras Image data loader returns tf.Data object on JAX backend HOT 2
- [Question]: Could we merge `keras.random` and `keras.ops`?
- Confusing example in documentation HOT 2
- Hypercomplex NN inclusion in Keras HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras.