Created
August 19, 2020 09:00
-
-
Save BloodAxe/213e2e315c4c43b31820b3835dd1d8b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/BloodAxe/Kaggle-2020-Alaska2 | |
callbacks += [ | |
CriterionCallback( | |
input_key=INPUT_TRUE_MODIFICATION_FLAG, | |
output_key=OUTPUT_PRED_MODIFICATION_FLAG, | |
criterion_key="bce" | |
), | |
CriterionCallback( | |
input_key=INPUT_TRUE_MODIFICATION_TYPE, | |
output_key=OUTPUT_PRED_MODIFICATION_TYPE, | |
criterion_key="ce" | |
), | |
CompetitionMetricCallback( | |
input_key=INPUT_TRUE_MODIFICATION_FLAG, | |
output_key=OUTPUT_PRED_MODIFICATION_FLAG, | |
prefix="auc", | |
output_activation=binary_logits_to_probas, | |
class_names=class_names, | |
), | |
OutputDistributionCallback( | |
input_key=INPUT_TRUE_MODIFICATION_FLAG, | |
output_key=OUTPUT_PRED_MODIFICATION_FLAG, | |
output_activation=binary_logits_to_probas, | |
prefix="distribution/binary", | |
), | |
BestMetricCheckpointCallback( | |
target_metric="auc", | |
target_metric_minimize=False, | |
save_n_best=3), | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment