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

The CTM TA pattern in rectangular input/kernel shape #75

Open
Baizhou-713 opened this issue Aug 1, 2024 · 0 comments
Open

The CTM TA pattern in rectangular input/kernel shape #75

Baizhou-713 opened this issue Aug 1, 2024 · 0 comments

Comments

@Baizhou-713
Copy link

Baizhou-713 commented Aug 1, 2024

Hello.

I found that something was wrong in the Convolutional Tsetlin Machine. When the CTM deals with rectangular input/kernel, it uses a transposed kernel for convolution (input also has some problems when it is not square). This leads to an error in the ta pattern when the dimension of the transposed kernel is greater than the input data. The correct TA order can only be extracted when the input and kernel are square.

At the same time, I found that in tools.py and Tools.c, the processing order for inputs is "y_pos, x_pos, p_z, p_x, p_y". It is different from the actual test results, which are shown in my file. The actual test results show that the order of ta should be: "x_pos, y_pos, p_y, p_x" (I did not test p_z).

I have attached the test files, hoping they will be helpful to you. Thank you.
model_test.zip

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