What does the pair of vertical lines in empirical entropy formula mean?

2

I am learning from this post.

$\alpha$ is the ratio of the first subset,

$$\alpha=\frac{\left|D_{1}\right|}{\left|D\right|}$$

according to the context and code of the post, $\left|D\right|$ means the number of samples?

  • What are the pair of vertical lines called?

Is it the L1 norm symbol? It does not seem to be the absolute value symbol.

Jay

Posted 2019-06-08T08:03:36.020

Reputation: 385

Answers

5

$D$ is a set which is further divided into sets $D_{1}$ and $D_{2}$. In this context the vertical lines represent the cardinality of the set i.e. the number of elements in the set. Hence, $\alpha$ represents the ratio of number of samples of $D_{1}$ to $D$.

bkshi

Posted 2019-06-08T08:03:36.020

Reputation: 1 907