[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.)

# <code class="doc-symbol doc-symbol-class"></code> `DropoutLayer` {#safeds.ml.nn.layers.DropoutLayer data-toc-label='[class] DropoutLayer'}

A dropout layer.

**Parent type:** [`Layer`][safeds.ml.nn.layers.Layer]

**Parameters:**

| Name | Type | Description | Default |
|------|------|-------------|---------|
| `probability` | [`Float`][safeds.lang.Float] | The probability that an input element gets zeroed out. | - |

??? quote "Stub code in `DropoutLayer.sdsstub`"

    ```sds linenums="12"
    class DropoutLayer(
        probability: Float
    ) sub Layer {
        /**
         * The probability that an input element gets zeroed out.
         */
        attr probability: Float
    }
    ```
    { data-search-exclude }

## <code class="doc-symbol doc-symbol-attribute"></code> `probability` {#safeds.ml.nn.layers.DropoutLayer.probability data-toc-label='[attribute] probability'}

The probability that an input element gets zeroed out.

**Type:** [`Float`][safeds.lang.Float]
