Gradient LabSign up free

ML glossary › Sigmoid

What is sigmoid in machine learning?

An S-shaped squasher that turns any number into a value between 0 and 1.

Where it shows up

Classification

Logistic regression

Logistic regression feeds the straight line into a sigmoid, an S-shaped squasher. Very low scores flatten out near 0, very high ones near 1. Now every output is a sensible chance.

Classification

Sigmoid and softmax

A model first produces a raw score, which can be any number at all. The sigmoid turns it into a chance between 0 and 1. The numbers under the bars are the raw scores; the bar heights are the chances.

See sigmoid in motion. The lesson animates it step by step, free.

Open the lesson

Related terms