Open tanwarsh opened 1 day ago
You can get the metrics name and it's value using model.get_metrics_result()
Attaching the Gist here for reference with the usage.
If you train the model, you can also get these metrics details using something like
history = model.fit()
history.history # This will be dictionary with all the metrics details
Thanks @sachinprasadhs for the quick response. This was helpful. I have one more doubt. with keras 3.6.0 code below is not working related to optmizer and I was not able to find anything related to this in documentation.
model.optimizer.get_weights()
model.optimizer.weights
How can we achieve the same functionality?
Hi, I am new to Keras and TensorFlow. I am using
keras==3.6.0
andtensorflow==2.18.0
. I created a sequential model and added layers to it. Here is a pseudocode of what I did:while evaluating the model, I am getting the results as shown below.
Result:
Expected Result:
Is my expectation correct, or do I need to access accuracy differently? Also, the results do not change even if I change the metrics while compiling the model. Any guidance would be appreciated.
eg.