Rate This Document
Findability
Accuracy
Completeness
Readability

SetEarlyStoppingParams

API Definition

int SetEarlyStoppingParams(int32_t adding_pref, int32_t patience)

Function

Sets the early stopping parameters.

Parameters

Parameter

Description

Data Type

Value Range

adding_pref

Threshold for inserting the hyperparameter candidate set.

int

≥ 1.

patience

Retrieval patience value.

int

≥ 1.

Return Value

Data Type

Description

int

If the parameter value is not within the value range, −1 is returned. If this interface is called after calling BuildSearcher or Load/Deserialize/LoadGraph, −1 is returned. Otherwise, 0 is returned.