Previous question · 1105
Mean Claimant Age by Gender
hardDatabase
Next question · 1107
Class Survival Counts
mediumDatabase
Random coding question

1106. Early stopping criterion

easy
GeneralGeneral
senior
Function contract
Inputs
patience
int
min_delta
float
val_losses
np.ndarray
Returns
value
tuple

Examples

Input
{
  "patience": 2,
  "min_delta": 0,
  "val_losses": [
    1,
    0.95,
    0.96,
    0.97,
    0.94,
    0.95
  ]
}
Output
[
  3,
  1
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
early-stopping
patience-min-delta
time-series-scan
training-loop-utilities

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
41 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands