Skip to content

๐ŸŒก Temperature scaling of convolutional neural networks using TensorFlow 2.X API

Notifications You must be signed in to change notification settings

ismailuddin/temperature-scaling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒก Temperature scaling using TensorFlow 2

An example of performing ๐ŸŒก temperature scaling using the TensorFlow 2.X API based on the paper On Calibration of Modern Neural Networks

Overview

  • A simple ๐Ÿš€ MiniVGGNet model is built and trained on the ๐Ÿ‘•Fashion MNIST ๐Ÿ‘— dataset using the TensorFlow 2.X API
  • The expected calibration error (ECE) is calculated and reliability diagrams plotted for the trained model
  • Reusable functions provided for calculating ECE, as well as plotting reliability diagrams
  • Temperature scaling is performed using gradient descent and the Adam optimiser
  • Based on PyTorch implementation by paper authors.

Requirements

  • Python 3.X
  • TensorFlow 2.X

About

๐ŸŒก Temperature scaling of convolutional neural networks using TensorFlow 2.X API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published