Skip to content
SakibpediaPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

entropy

Go Windows exe License: MIT

Shannon entropy of categorical labels in bits, with normalized entropy.

Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]

Detailed use cases

  1. Feature analysis — measure impurity of a categorical column.
  2. Text diversity — compare vocabulary richness across documents.
  3. Decision trees — compute the splitting criterion before implementing ID3.

Download and run (Windows)

Download entropy.exe from the Releases page, then:

Get-Content data.csv | .\entropy.exe
# or
.\entropy.exe -f data.csv

The executable is a native Windows binary — no Python, no installer, no DLLs.

Build from source

go test ./...
go build -o entropy.exe .

Example output

{
  "labels": 4,
  "entropy_bits": 2,
  "normalized": 1
}

Input format

One category label per line. Blank lines are ignored.

Visual preview

entropy preview

Testing

main_test.go covers the core algorithm with deterministic cases. Run go test ./....

License and contact

MIT © S M Nazmuz Sakib (2026). Questions: [email protected].

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages