Validator¶
-
class
tfsnippet.Validator(**kwargs)¶ Bases:
tfsnippet.trainer.evaluator.EvaluatorClass to compute validation loss and other metrics.
Attributes Summary
batch_weight_funcGet the function to compute the metric weight for each mini-batch. data_flowGet the validation data flow. eventsGet the event source object. feed_dictGet the fixed feed dict. inputsGet the input placeholders. last_metrics_dictGet the metric values from last evaluation. loopGet the training loop object. metricsGet the metrics to compute. time_metric_nameGet the metric name for collecting evaluation time usage. Methods Summary
run([feed_dict])Run evaluation. Attributes Documentation
-
batch_weight_func¶ Get the function to compute the metric weight for each mini-batch.
-
events¶ Get the event source object.
Returns: The event source object. Return type: EventSource
-
last_metrics_dict¶ Get the metric values from last evaluation.
Returns: The metric values dict. Return type: dict[str, any]
-
metrics¶ Get the metrics to compute.
Returns: The metrics to compute. Return type: OrderedDict[str, tf.Tensor]
-
time_metric_name¶ Get the metric name for collecting evaluation time usage.
Methods Documentation
-