pyTsetlinMachine
pyTsetlinMachine copied to clipboard
2DNoisyXORDemo.py doesn't produce expected output
Hi,
Thank you for providing this code.
When running examples/2DNoisyXORDemo.py, the produced output is not the same as the output provided in the 2D convolution demo in the README markdown file.
Machine details: MacbookAir 64-bit Intel Core i5 macOS Mojave Python version 3.9.2
Input:
git clone https://github.com/cair/pyTsetlinMachine.git
cd pyTsetlinMachine/examples
python3 2DNoisyXORDemo.py
Expected Output:
Accuracy: 99.97%
Input Image:
[[0 1 1 0]
[1 1 0 1]
[1 0 1 1]
[0 0 0 1]]
Prediction: 1
Actual Output:
Accuracy: 100.0
Input Image:
[[[0 1 1 0]
[1 1 0 1]
[1 0 1 1]
[0 0 0 1]]]
Prediction: 0