mindelec.solver.EvalCallback

class mindelec.solver.EvalCallback(model, eval_ds, eval_interval)[source]

Evaluate the model during training.

Parameters
  • model (Model) – A testing network.

  • eval_ds (Dataset) – Dataset to evaluate the model.

  • eval_interval (int) – Specifies how many epochs to train before evaluating.

Supported Platforms:

Ascend

epoch_end(run_context)[source]

Evaluate the model at the end of epoch.

Parameters

run_context (RunContext) – Context of the train running.