matrix-entropy icon indicating copy to clipboard operation
matrix-entropy copied to clipboard

Python implementation of "Measuring entropy/ information/ patterns of a 2d binary matrix" based on the corresponding StackOverflow answer

Results 3 matrix-entropy issues
Sort by recently updated
recently updated
newest added

This is not really an issue, but couldn't find any other way to ask. Would this work also for non-binary matrices? Let's say different weights on a grid. Edited: I...

Noticing some places where some use of numpy functions would be more efficient! https://github.com/cosmoharrigan/matrix-entropy/blob/master/calculate_profile.py#L43 So I think an easier way to do the `dict(Counter(...))` would be to use `numpy.unique(..., return_counts=True)....