Skip to content

evaluate

allennlp.commands.evaluate

[SOURCE]


The evaluate subcommand can be used to evaluate a trained model against a dataset and report any metrics calculated by the model.

Evaluate

@Subcommand.register("evaluate")
class Evaluate(Subcommand)

add_subparser

class Evaluate(Subcommand):
 | ...
 | def add_subparser(
 |     self,
 |     parser: argparse._SubParsersAction
 | ) -> argparse.ArgumentParser

evaluate_from_args

def evaluate_from_args(args: argparse.Namespace) -> Dict[str, Any]