LLMs in Lingustic Research WiSe 2024/25
23 Oct 2024
Sigmoid function \[ f(x) = \frac{1}{1 + e^{-x}} \]
Example: \(f(0) = 0.5\)
where:
- f(x): This represents the output of the sigmoid function for a given input x.
- e: This is the euler's number (approximately 2.71828).
- x: This is the input to the sigmoid function.
- 1: This is added to the denominator to avoid division by zero.
ReLU function
\[ f(x) = \max(0, x) \]
Example: \(f(2) = 2\)
where:
- f(x): This represents the output of the ReLU function for a given input x.
- x: This is the input to the ReLU function.
- max: This function returns the maximum of the two values.
- 0: This is the threshold value.
LLMs in Lingustic Research WiSe 2024/25