Deprecated. Please use tf.keras.utils.SidecarEvaluator instead.
Inherits From: SidecarEvaluator
tf.keras.experimental.SidecarEvaluator(
*args, **kwargs
)
| Args | |
|---|---|
model | Model to use for evaluation. The model object used here should be a tf.keras.Model, and should be the same as the one that is used in training, where tf.keras.Models are checkpointed. The model should have one or more metrics compiled before using SidecarEvaluator. |
data | The input data for evaluation. SidecarEvaluator supports all data types that Keras model.evaluate supports as the input data x, such as a tf.data.Dataset. |
checkpoint_dir | Directory where checkpoint files are saved. |
steps | Number of steps to perform evaluation for, when evaluating a single checkpoint file. If None, evaluation continues until the dataset is exhausted. For repeated evaluation dataset, user must specify steps to avoid infinite evaluation loop. |
max_evaluations | Maximum number of the checkpoint file to be evaluated, for SidecarEvaluator to know when to stop. The evaluator will stop after it evaluates a checkpoint filepath ending with 'tf.train.CheckpointManager.save for saving checkpoints, the kth saved checkpoint has the filepath suffix 'None, SidecarEvaluator will evaluate indefinitely, and the user must terminate evaluator program themselves. |
callbacks | List of keras.callbacks.Callback instances to apply during evaluation. See callbacks. |
startstart()
Starts the evaluation loop.
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/keras/experimental/SidecarEvaluator