Skip to content

Commit

Permalink
feat: Update Code
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe.zkk committed Aug 12, 2024
1 parent 92dabf0 commit 14f3afc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _posts/2024-07~09/2024-08-12-igr.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,31 @@ Overall = -\sum_{i=1}^{n}P(T_i)log_2P(T_i)
$$

Entropy:

$$
Entropy(A_j) = -\sum_{i=1}^{n}P(A_j|T_i)log_2P(A_j|T_i)
$$

Information:

$$
Information(A) = \sum_{j=1}^{m}P(A_j)Entropy(A_j)
$$

Information gain (A):

$$
InformationGain(A) = Overall - Information(A)
$$

Split information:

$$
SplitInformation(A) = -\sum_{j=1}^{m}P(A_j)log_2P(A_j)
$$

Gain ratio:

$$
GainRatio(A) = \frac{InformationGain(A)}{SplitInformation(A)}
$$
Expand Down

0 comments on commit 14f3afc

Please sign in to comment.