Code for the post: How to interpret the last layer activity of a neural network trained on classification?
Train models on simulated data and compare the model's output with the theoretically derived posterior: posterior_vs_model_output.py
Run ImageNet trained ResNet50 model to infer class probabilities on images: resnet50_inference.py