Skip to content

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

@alexisseppolabat

Description

@alexisseppolabat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions