Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
  1. "any preprocessing statistics (e.g. the data mean) must only be computed on the training data, and then applied to the validation/test data. E.g. computing the mean and subtracting it from every image across the entire dataset and then splitting the data into train/val/test splits would be a mistake." []

  2. Read []

  3. Search for good hyperparameters with random search (not grid search). Stage your search from coarse (wide hyperparameter ranges, training only for 1-5 epochs), to fine (narrower rangers, training for many more epochs). []

  4. During training, monitor the loss, the training/validation accuracy, and if you’re feeling fancier, the magnitude of updates in relation to parameter values (it should be ~1e-3), and when dealing with ConvNets, the first-layer weights. []

  5. Read answer: []

  6. Read CS231n CNNs: []

  7. Very imp: []

  8. Mixed precision training - FP16 + FP32: check details in blog []

  9. Transfer learning even when datasets are not related. Read: []

  10. Backpropagation explaination: []

  11. "We show that transfer learning gives only minimal final performance gains, but significantly improves convergence speed. In this, weight scaling plays a key role: we identify Mean Var initialization as a simple way to use only scaling information from the pretrained weights, but to achieve substantial convergance gains, equal to i.i.d. sampling from the full empirical distribution. We also compare the representations obtained through the imagenet pretraining, Mean Var Init, and randdom Init. At lower layers, the different approaches yield very different representations, with Random Init and Mean Var Init not learning Gabor filters." []. So I think even the network structure is a different from the network on which Imagenet is trained, we can still take the mean-var stats from that network and initialize the new network weights.

  12. Find a good learning rate: []

  13. 1-cycle policy: []

  14. NN in numpy: []

  15. Convolution in numpy: []

  16. — An infinitely customizable training loop with Sylvain Gugger []

  17. Resnet - [] []

  18. Linux commands []

  19. Full stack deep learning: []

  20. Andrej karpathy: Recipe for training NN - []

TODO: Stochastic weights averaging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.