Class EpochEndEventArgs
Event triggered when the training epoch ends
Inheritance
Inherited Members
Namespace: SiaNet.Events
Assembly: SiaNet.dll
Syntax
public class EpochEndEventArgs : EventArgs
Constructors
| Improve this Doc View SourceEpochEndEventArgs(Int32, Int64, Single, Single, Single, Single, Int64)
Initializes a new instance of the EpochEndEventArgs class.
Declaration
public EpochEndEventArgs(int epoch, long samplesSeen, float loss, float validationLoss, float metric, float validationMetric, long duration)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | epoch | The current epoch number. |
System.Int64 | samplesSeen | The number of samples seen during this training for the current epoch. |
System.Single | loss | The loss value for the current epoch. |
System.Single | validationLoss | The validation loss for the epoch. |
System.Single | metric | The metric value for the epoch. |
System.Single | validationMetric | The validation metric value for the epoch. |
System.Int64 | duration | The time took to complete the epoch. In milliseconds |
Properties
| Improve this Doc View SourceDuration
Gets the time taken to complete the epoch. In milliseconds.
Declaration
public long Duration { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The duration. |
Epoch
Gets the current epoch.
Declaration
public int Epoch { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The epoch. |
Loss
Gets the loss value for the current epoch.
Declaration
public float Loss { get; }
Property Value
Type | Description |
---|---|
System.Single | The loss. |
Metric
Gets the metric value for the current epoch.
Declaration
public float Metric { get; }
Property Value
Type | Description |
---|---|
System.Single | The metric. |
SamplesSeen
Gets the nymber of samples seen during epoch training.
Declaration
public long SamplesSeen { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The samples seen. |
ValidationLoss
Gets the validation loss value for the current epoch.
Declaration
public float ValidationLoss { get; }
Property Value
Type | Description |
---|---|
System.Single | The validation loss. |
ValidationMetric
Gets the validation metric value for the current epoch.
Declaration
public float ValidationMetric { get; }
Property Value
Type | Description |
---|---|
System.Single | The validation metric. |