- Hands-On Machine Learning with Microsoft Excel 2019
- Julio Cesar Rodriguez Martino
- 49字
- 2021-06-24 15:11:03
Entropy of each feature with respect to the target variable
The entropy of two variables f1 and f2 is defined as follows:
![](https://epubservercos.yuewen.com/33541B/19470379501493906/epubprivate/OEBPS/Images/0b6434d3-d2fb-4a52-820d-e3b14870dc30.png?sign=1738807959-CTbQjgn7ie4I1ql2K3y4nOixGFsGnCx4-0-344fb2d65f77d8449dc16ac94e0b8d21)
Here, v represents each possible value of f2, P(v) is the probability of each value, and S(v) was defined in the previous equation.