# `EvalBatchPredict`

### *class* capymoa.ocl.evaluation.events.EvalBatchPredict[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/ocl/evaluation/events.py#L78)

Bases: [`TestTaskBegin`](capymoa.ocl.evaluation.events.TestTaskBegin.md#capymoa.ocl.evaluation.events.TestTaskBegin)

After predicting on an evaluation batch, but before any updates.

#### \_\_init_\_(train_task: [int](https://docs.python.org/3/builtins/functions.html#int), test_task: [int](https://docs.python.org/3/builtins/functions.html#int), continual_eval: [int](https://docs.python.org/3/builtins/functions.html#int), global_step: [int](https://docs.python.org/3/builtins/functions.html#int), batch: [int](https://docs.python.org/3/builtins/functions.html#int), x: [Tensor](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor), y: [Tensor](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor), y_hat: [Tensor](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor)) → [None](https://docs.python.org/3/builtins/constants.html#None)

#### batch *: [int](https://docs.python.org/3/builtins/functions.html#int)*

Batch ID within the current task stream.

#### continual_eval *: [int](https://docs.python.org/3/builtins/functions.html#int)*

If multiple evaluations are performed during each training task, this counts
which evaluation pass is being performed. Otherwise will be 0.

#### global_step *: [int](https://docs.python.org/3/builtins/functions.html#int)*

A monotonically increasing integer that counts training and evaluation steps.

#### test_task *: [int](https://docs.python.org/3/builtins/functions.html#int)*

The ID of the test task that has begun.

#### train_task *: [int](https://docs.python.org/3/builtins/functions.html#int)*

The ID of the training task that is being evaluated.

#### x *: [Tensor](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor)*

The input batch.

#### y *: [Tensor](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor)*

The target batch.

#### y_hat *: [Tensor](https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor)*

The predicted batch.
