Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ModeTrain Mode = "train" ModeVal Mode = "val" ModeTest Mode = "test" EventStart Event = "start" EventDuring Event = "during" EventEnd Event = "end" EventSave Event = "save" ActionNop Action = "nop" ActionSave Action = "save" ActionHalt Action = "halt" )
View Source
var ( LoggerVerbose = "verbose" LoggerTotalBatches = "totalBatches" LoggerPrefetched = "prefetched" )
Functions ¶
This section is empty.
Types ¶
type Checkpoint ¶
type Checkpoint struct { OnEvent Event OnMode Mode Loss bool MetricName string Compare CheckpointCompare SaveDir string // contains filtered or unexported fields }
func (*Checkpoint) GetSaveDir ¶
func (c *Checkpoint) GetSaveDir() string
func (*Checkpoint) Init ¶
func (c *Checkpoint) Init() error
type CheckpointCompare ¶
type CheckpointCompare string
var ( CheckpointCompareMin CheckpointCompare = "min" CheckpointCompareMax CheckpointCompare = "max" )
type EarlyStoppingOnMetric ¶ added in v0.26.28
type EarlyStoppingOnMetric struct { OnEvent Event OnMode Mode MetricName string Mode EarlyStoppingOnMetricMode MaxValue float64 MinValue float64 }
func (*EarlyStoppingOnMetric) Init ¶ added in v0.26.28
func (c *EarlyStoppingOnMetric) Init() error
type EarlyStoppingOnMetricMode ¶ added in v0.26.28
type EarlyStoppingOnMetricMode string
var ( Min EarlyStoppingOnMetricMode = "min" Max EarlyStoppingOnMetricMode = "max" )
type HasSaveDir ¶
type HasSaveDir interface {
GetSaveDir() string
}
type Logger ¶
type Logger struct { FileLogger *cblog.Logger Progress bool ProgressLogDir string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.