|  | ## Write Threshold

#### Synopsis

Writes a threshold to a file (used for transforming soft into crisp predictions).

#### Description

Writes the given threshold into a file. The first line holds the threshold, the second the value of the first class, and the second the value of the second class. This file can be read in another process using the ThresholdLoader.

#### Input

- input: expects: Threshold

#### Output

- through:

#### Parameters

- threshold file: Filename for the threshold file.
- encoding: The encoding used for reading or writing files.

#### ExampleProcess