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

2DNoisyXORDemo.py doesn't produce expected output #12

Open
alexisseppolabat opened this issue Jan 4, 2023 · 0 comments
Open

2DNoisyXORDemo.py doesn't produce expected output #12

alexisseppolabat opened this issue Jan 4, 2023 · 0 comments

Comments

@alexisseppolabat
Copy link

alexisseppolabat commented Jan 4, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant