EvaluationCallback

class EvaluationCallback

Callback for custom scoring methods.

__init__

def __init__(summarizer, scorers, val_data, print_num_examples)

Initializes the Callback.

Args
  • summarizer: Summarizer that predicts over the validation data.

  • scorers: Dictionary of {scorer_name

  • val_data: Raw validation data to predict on.

  • print_num_examples: Number of prediction examples to output for eyeballing the prediction quality.

on_epoch_end

def on_epoch_end(batch, logs)