Class BatchEndEventArgs
Event triggered during batch training ends
Inheritance
System.Object
BatchEndEventArgs
Namespace: SiaNet.Events
Assembly: SiaNet.dll
Syntax
public class BatchEndEventArgs
Constructors
| Improve this Doc View SourceBatchEndEventArgs(Int32, Int64, Single, Single)
Initializes a new instance of the BatchEndEventArgs class.
Declaration
public BatchEndEventArgs(int epoch, long batch, float loss, float metric)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | epoch | The current epoch number. |
System.Int64 | batch | The current batch number. |
System.Single | loss | The loss value for the batch. |
System.Single | metric | The metric value for the batch. |
Properties
| Improve this Doc View SourceBatch
Gets the current batch number.
Declaration
public long Batch { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The batch. |
Epoch
Gets the current epoch number.
Declaration
public int Epoch { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The epoch. |
Loss
Gets the loss value for this batch.
Declaration
public float Loss { get; }
Property Value
Type | Description |
---|---|
System.Single | The loss. |
Metric
Gets the metric value for this batch.
Declaration
public float Metric { get; }
Property Value
Type | Description |
---|---|
System.Single | The metric. |