This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
"""\ | |
We are computing the probability of features 1 through 16. | |
Each feature represents a pixel in a 4 x 4 bitmap. | |
We are taking into account the probability that a pixel is black. | |
This simplifies calculations as the probability of white is equal to | |
the probability of !black. | |
""" | |
import numpy, math |