SetEarlyStoppingParams
API Definition
int SetEarlyStoppingParams(int32_t adding_pref, int32_t patience)
Function
Sets the early stopping parameters.
Parameters
Parameter |
Data Type |
Description |
Value Range |
|---|---|---|---|
adding_pref |
int |
Threshold for inserting the hyperparameter candidate set. |
≥ 1. |
patience |
int |
Retrieval patience value. |
≥ 1. |
Return Value
Data Type |
Description |
|---|---|
int |
If the parameter value is not within the value range, −1 is returned. If this API is called after BuildSearcher or Load/Deserialize/LoadGraph is called, −1 is returned. Otherwise, 0 is returned. |
Parent topic: C++