Metrics

Discover the most commonly used metrics for evaluating a neural network.

Chapter Goals:

  • Convert logits to probabilities
  • Obtain model predictions from probabilities
  • Calculate prediction accuracy

A. Sigmoid

As discussed in the previous chapter, our model outputs logits based on the input data. These logits represent real number mappings from probabilities. Therefore, if we had the inverse mapping we could obtain the original probabilities. Luckily, we have exactly that, in the form of the sigmoid function.

widget

The above plot shows a sigmoid function graph. The x-axis represents logits, while the y-axis represents probabilities.

Note the horizontal asymptotes at y = 0 and y = 1.

Using the sigmoid function (tf.math.sigmoid ...

Access this course and 1400+ top-rated courses and projects.