Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A more detailed log for entropy computations #40

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

JPapir
Copy link
Collaborator

@JPapir JPapir commented Nov 11, 2024

Small improvements to the log, produces this kind of output:

## Class n°8 (2 members, H=0.00).

|    | Pattern                                          | Example                                |   Size |   P(Pattern|class) |
|---:|:-------------------------------------------------|:---------------------------------------|-------:|-------------------:|
|  0 | [-voic]t ⇌ [+voic] / X+_i?                       | -                                      |      0 |                  0 |
|  1 | [+str]_ʃti ⇌ [-str]_iːʒ / X*_{l,lʲ,m,n,nʲ,r,rʲ}_ | -                                      |      0 |                  0 |
|  2 | eˀ_ʃti ⇌ ie_iːʒ / {b,m,v}_r_                     | ver_22505: v eˀ r ʃ t i  → v ie r iː ʒ |      2 |                  1 |

## Class summary

Av. conditional entropy: H(pattern|class)=0.25889410165149906

|    |   Size |   H(pattern|class) |
|---:|-------:|-------------------:|
|  0 |   4278 |           0.3019   |
|  1 |    508 |           0        |
|  2 |    196 |           0.114204 |
|  3 |    159 |           0        |
|  4 |    107 |           0        |
|  5 |    104 |           0.811278 |
|  6 |     45 |           0        |
|  7 |      2 |           0        |
|  8 |      2 |           0        |

@JPapir JPapir added the enhancement New feature or request label Nov 11, 2024
@JPapir JPapir requested a review from XachaB November 11, 2024 09:16
JPapir added a commit that referenced this pull request Nov 15, 2024
@XachaB XachaB merged commit 76686da into dev Dec 18, 2024
3 checks passed
@JPapir JPapir deleted the feature-detailed-log branch December 18, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants