Implements the Tsetlin Machine, Coalesced Tsetlin Machine, Convolutional Tsetlin Machine, Regression Tsetlin Machine, and Weighted Tsetlin Machine, with support for continuous features, drop clause, Type III Feedback, focused negative sampling, multi-task classifier, autoencoder, literal budget, and one-vs-one multi-class classifier. TMU is written in Python with wrappers for C and CUDA-based clause evaluation and updating.
Dev gives the following error when running LogicalTransformerDemo.py
Traceback (most recent call last):
File "/Users/oleg/Dropbox/Research/Implementations/LogicalTransformer/./LogicalTransformerDemo.py", line 73, in
Y_test_predicted_token, Y_test_scores_token = tms[i][j].predict(X_test_token, return_class_sums=True)
File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/models/classification/vanilla_classifier.py", line 425, in predict
encoded_X_test = self.test_encoder_cache.get_encoded_data(
File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/util/encoded_data_cache.py", line 18, in get_encoded_data
current_hash = self.compute_hash(data)
File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/util/encoded_data_cache.py", line 14, in compute_hash
return xxhash.xxh3_64_hexdigest(arr)
ValueError: ndarray is not C-contiguous
Dev gives the following error when running LogicalTransformerDemo.py
Traceback (most recent call last): File "/Users/oleg/Dropbox/Research/Implementations/LogicalTransformer/./LogicalTransformerDemo.py", line 73, in
Y_test_predicted_token, Y_test_scores_token = tms[i][j].predict(X_test_token, return_class_sums=True)
File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/models/classification/vanilla_classifier.py", line 425, in predict
encoded_X_test = self.test_encoder_cache.get_encoded_data(
File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/util/encoded_data_cache.py", line 18, in get_encoded_data
current_hash = self.compute_hash(data)
File "/Users/oleg/Dropbox/Research/Implementations/dev/tmu/tmu/util/encoded_data_cache.py", line 14, in compute_hash
return xxhash.xxh3_64_hexdigest(arr)
ValueError: ndarray is not C-contiguous