cair / tmu

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.
https://pypi.org/project/tmu/
MIT License
126 stars 13 forks source link

IMDbWordEmbeddingDemo.py not working #53

Closed olegranmo closed 10 months ago

olegranmo commented 10 months ago

python3 ./examples/autoencoder/IMDbWordEmbeddingDemo.py Could not import pycuda: No module named 'pycuda' No module named 'pycuda' Traceback (most recent call last): File "/Users/oleg/Dropbox/Research/Implementations/tmp/tmu/tmu/clause_bank/clause_bank_cuda.py", line 41, in from pycuda._driver import Device, Context ModuleNotFoundError: No module named 'pycuda' Could not import pycuda. This indicates that it is not installed! A possible fix is to run 'pip install pycuda'. Fallback to CPU ClauseBanks. Hash mismatch, redownloading file 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.64M/1.64M [00:00<00:00, 6.54MiB/s] Traceback (most recent call last): File "/Users/oleg/Dropbox/Research/Implementations/tmp/tmu/./examples/autoencoder/IMDbWordEmbeddingDemo.py", line 194, in main() File "/Users/oleg/Dropbox/Research/Implementations/tmp/tmu/./examples/autoencoder/IMDbWordEmbeddingDemo.py", line 72, in main word_to_id = dataloader.get_word_index() File "/Users/oleg/Dropbox/Research/Implementations/tmp/tmu/tmu/data/imdb_keras.py", line 149, in get_word_index with open(path) as f: FileNotFoundError: [Errno 2] No such file or directory: '/Users/oleg/.cache/tmu/datasets/imdb_word_index'

perara commented 10 months ago

This I think is fixed. please reopen if its still an issue.