right shape? Why not create a new layer of the right shape, and copy over the weights for the first three layers? Why not create a new layer of the right shape, and copy over the weights for the first three layers, and re-use the first layer for the fourth layer as well?
Focal Loss is designed to address the one-stage object detection scenario in which there is an extreme imbalance between foreground and background classes during training (e.g., 1:1000).”
0.1, 0.2, 0.7, … C] How to decide which are 1s and which are 0s? Most naive: 0.5 Better: optimize threshold based on validation set Best: optimize separate threshold per class on validation set
minimize metric (in this case, F1) Combination of optimization methods L-BFGS-B and Basinhopping using sklearn (https://github.com/mratsim/Amazon-Forest-Computer-Vision)
and 1s: [1, 0, 0, 1, 0] [1, 0, 1, 0, 1] [1, 0, 0, 1, 1] Our output would be the logical OR (basically if any model predicted that class): [1, 0, 1, 1, 1]
Kernels and Discussion threads that helped me in this competition (some already referenced in slides): https://www.kaggle.com/iafoss/pretrained-resnet34-with-rgby-0-460-public-lb (fastai v0.7) https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion/75691 https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion/73938 https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion/74065 https://www.kaggle.com/c/human-protein-atlas-image-classification/discussion/69984#4 36319