Table of Contents

Class StageCallbacks<T, TInput, TOutput>

Namespace
AiDotNet.Models.Options
Assembly
AiDotNet.dll

Callbacks for training stage events.

public class StageCallbacks<T, TInput, TOutput>

Type Parameters

T

The numeric data type used for calculations.

TInput

The input data type for the model.

TOutput

The output data type for the model.

Inheritance
StageCallbacks<T, TInput, TOutput>
Inherited Members

Properties

OnBatchComplete

Called after each batch within the stage.

public Action<int, double>? OnBatchComplete { get; set; }

Property Value

Action<int, double>

OnEpochComplete

Called after each epoch within the stage.

public Action<int, double>? OnEpochComplete { get; set; }

Property Value

Action<int, double>

OnStageComplete

Called when the stage completes successfully.

public Action<TrainingStageResult<T, TInput, TOutput>>? OnStageComplete { get; set; }

Property Value

Action<TrainingStageResult<T, TInput, TOutput>>

OnStageError

Called if the stage encounters an error.

public Action<Exception>? OnStageError { get; set; }

Property Value

Action<Exception>

OnStageStart

Called before the stage starts.

public Action<TrainingStage<T, TInput, TOutput>>? OnStageStart { get; set; }

Property Value

Action<TrainingStage<T, TInput, TOutput>>