Callbacks
MinEpochEarlyStopping
¤
Bases: EarlyStopping
Changed baseline to act as a real baseline.
The number of patience epochs are only counted when baseline loss is achieved.
Reference - Implementation
Author: McLawrence
Source: https://stackoverflow.com/questions/46287403/is-there-a-way-to-implement-early-stopping-in-keras-only-after-the-first-say-1
Source code in aucmedi/utils/callbacks.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|
ThresholdEarlyStopping
¤
Bases: EarlyStopping
Changed baseline to act as a real baseline.
The number of patience epochs are only counted when baseline loss is achieved.
Reference - Implementation
Author: JBSnorro
Source: https://stackoverflow.com/questions/53500047/stop-training-in-keras-when-accuracy-is-already-1-0
Source code in aucmedi/utils/callbacks.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
csv_to_history(input_path)
¤
Utility function for reading a CSV file from the CSVLogger Callback and return a History dictionary object.
Can be utilized in order to pass returned dictionary object to the evaluate_fitting() function of the AUCMEDI evaluation submodule.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_path |
str
|
Path to a CSV file generated by a CSVLogger Callback. |
required |
Returns:
Name | Type | Description |
---|---|---|
history |
dict
|
A history dictionary from a Keras history object which contains several logs. |
Source code in aucmedi/utils/callbacks.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|