Problems
Previous question · 1105
Mean Claimant Age by Gender
hard
Database
Next question · 1107
Class Survival Counts
medium
Database
Random coding question
NumPy
Language
NumPy
Practice
Interview
AI Tutor
Description
Solution
Discussion
1106. Early stopping criterion
easy
General
senior
Function contract
Inputs
patience
int
min_delta
float
val_losses
np.ndarray
Returns
value
tuple
Examples
Example 1
Input
{
"patience"
:
2
,
"min_delta"
:
0
,
"val_losses"
:
[
1
,
0.95
,
0.96
,
0.97
,
0.94
,
0.95
]
}
Output
[
3
,
1
]
Example 2
Input Signature
Argument
Type
patience
int
min_delta
float
val_losses
np.ndarray
Output Signature
Return Name
Type
value
tuple
Constraints
Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
General
Levels
senior
entry
Tags
early-stopping
patience-min-delta
time-series-scan
training-loop-utilities
Similar Questions
Linear Regression
medium
ML Coding
Activation function relu
easy
ML Coding
Text normalization
medium
ML Coding
41 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>