2. 5 Tips & Tricks
• Be Methodical & Document Everything
• Get a GPU
• Keras Callbacks
• Precomputing
• Pseudo Labelling
3. 1. Be Methodical &
Document Everything
• You usually won’t get right first time
• Document experiments
• Architectures - Jupyter Notebooks
• Preprocs
• Settings
• Results
• Start with small sample datasets
4. 2. Get a GPU
• High end is 30-50x++ faster
• Low end is 15-30x faster
• 1min per epoch on GPU can be 30min + on CPU
• 50 epochs - 50min vs 1day on CPU
• Google Cloud ML - datalabs
5. 3. Keras Callbacks
• Triggering functions during training
• Can be triggered on Epoc or Batch
• Used to make updates during training
• Used to track data for showing results at the end
6. Key Callbacks
• History
• TensorBoard
• EarlyStopping
• Learning Rate Scheduling
• Dealing with Plateaus
8. PreCompute
• Precompute any part of the network that won’t change
• PreProcessing inputs
• Center crop
• Size change
• Data Augmentation
• Bcolz array
• Ideal for TransferLearning where you are adding just layers at the
end
• Enables much quicker training time
9. What is Pseudo Labelling
• Semi Supervised learning
• Making use of all your data
• Even non labeled data
• Using your Test data for prediction