# Selection functions

## Threshold function

The output is 0 if it's below the threshold, otherwise it's 1.

<figure><img src="https://569842953-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LmjpNbCRLUyGiAxD8kn%2Fuploads%2FFSBpmF7YXhqpj40vsesO%2Fimage.png?alt=media&#x26;token=e334054e-4321-452b-9cea-8fc8f8a43aed" alt=""><figcaption></figcaption></figure>

### Argmax function

* Picks the **value with the highest value** among different probabilities
* Returns the "position" of the picked value.

<table><thead><tr><th> </th><th>class_0</th><th>class_1</th><th data-type="number">class_2</th><th>Output</th></tr></thead><tbody><tr><td>sample_0</td><td>0.2</td><td>0.6</td><td>0.2</td><td>1</td></tr><tr><td>sample_1</td><td>0.1</td><td>0.1</td><td>0.8</td><td>2</td></tr><tr><td>sample_2</td><td>0.5</td><td>0.2</td><td>0.3</td><td>0</td></tr></tbody></table>



