Model Pipeline - Model evaluation (TFMA)
This pipeline shows how a trained TensorFlow model is evaluated using TensorFlow Model Analysis (TFMA). It helps us understand how well the model performs on different slices of data and overall.
This pipeline shows how a trained TensorFlow model is evaluated using TensorFlow Model Analysis (TFMA). It helps us understand how well the model performs on different slices of data and overall.
Loss
0.7 |****
0.6 |***
0.5 |**
0.4 |*
0.3 |*
0.2 |*
1 2 3 4 5 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.65 | 0.60 | Model starts learning, loss high, accuracy low |
| 2 | 0.48 | 0.75 | Loss decreases, accuracy improves |
| 3 | 0.35 | 0.85 | Model converging, better predictions |
| 4 | 0.28 | 0.90 | Loss continues to decrease, accuracy high |
| 5 | 0.25 | 0.92 | Training stabilizes with good accuracy |
eval_result?
import tensorflow_model_analysis as tfma
eval_result = tfma.run_model_analysis(
model_location='saved_model_dir',
data_location='eval_data.tfrecord',
eval_config=tfma.EvalConfig(
metrics_specs=[tfma.MetricsSpec(metrics=[tfma.MetricConfig(class_name='Accuracy')])]
)
)AttributeError: 'EvalConfig' object has no attribute 'metrics'. What is the likely cause?gender?Pass the test and this pattern moves unknown