oa::CbEarlyStop

CbEarlyStop class in the OA Ml public surface.

Inheritance

public CbTraining · public Callback

Public Methods

void oa::CbEarlyStop::onEpochEnd(oa::ItTraining & inIter)
bool oa::CbEarlyStop::shouldStop()

Constructor & Destructor Documentation

oa::CbEarlyStop::CbEarlyStop( oa::I64 inPatience = 5, oa::F64 inMinDelta = 1e-4, EarlyStopMode inMode = EarlyStopMode::Min, oa::Metric * inMetric = nullptr )
No public source comment is attached to this declaration.

Parameters

inPatience
oa::I64

Default: 5

inMinDelta
oa::F64

Default: 1e-4

inMode
EarlyStopMode

Default: EarlyStopMode::Min

inMetric
oa::Metric *

Default: nullptr

Public Method Documentation

void oa::CbEarlyStop::onEpochEnd( oa::ItTraining & inIter )
No public source comment is attached to this declaration.

Parameters

inIter
oa::ItTraining &

Returns

void

The declared return value.

bool oa::CbEarlyStop::shouldStop()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.