2

I've come across an expression from the Stanford Neural Network Course Note that looks like this:

enter image description here

(where a, b, c are parameter vectors)

What is the name of this notation "" and what does it mean / do? i.e.

enter image description here

I guess it means "1" (one) but not entirely sure as it seems to be written in a specific way for a reason? (could it be that it means true if x is within the range a to b, and false if x is outside that range? Boolean related?)

Atlas7
  • 131

3 Answers3

2

This is the indicator function. In your case,

$$ \mathbf 1(a_i < x < b_i)(x) = \begin{cases} 1 & \text{ if } a_i < x < b_i \\ 0 & \text{ else} \end{cases} $$

Henricus V.
  • 18,694
2

It is the "indicator function". It equals one when the conditions in the subscript are met, and zero otherwise.

The Count
  • 3,620
1

From the (little) context, my guess is that $$1\!\!1(\phi(x))=\begin{cases}1&\text{if }\phi(x)\\0&\text{if }\neg\phi(x)\end{cases}$$