Questions about AttributeError: Missing attribute "user_labels_for_eval"
Hello, thank you for your excellent work! I just started running your program according to the description file, but I have encountered some problems.
First of all, I ran 'python DeepDPM.py --dataset synthetic --log_emb every_n_epochs --log_emb_every 1' according to the instructions, but reported the error AttributeError: Missing Attribute "user _ labels _ for _ eval". I don't know how to set this user_labels_for_eval. (I remember that the documentation said that this was not needed for training, but I don't know why I reported an error.)
Secondly, you mentioned that you don't need to download the data set during raw data training, and it will be automatically downloaded to data ('When training on raw data (e.g., on MNIST, Reuters10k) the data for MNIST will be automatically downloaded to the "data" directory. For reuters10k, the user needs to download the dataset independently (available online) into the "data" directory.'). Is this training directly from the original data set online? Because I didn't see the data folder (my understanding is that the program will automatically download the data set and generate a response folder)
Thank you for your answer.
Hi! In regards to your first question, I've had a similar issue and it's a typo in the code. Check out my pull request with the fix: https://github.com/BGU-CS-VIL/DeepDPM/pull/45
Hi! In regards to your first question, I've had a similar issue and it's a typo in the code. Check out my pull request with the fix: #45
Thank you for your answer. It was very useful and helped me solve problem 1. But after running, a new problem appeared immediately, that is,' Tensordataset' object has no attribute' data' (I think it is related to question 2? ) Have you ever met it?
Finished training! Traceback (most recent call last): File "DeepDPM.py", line 449, in <module> train_cluster_net() File "DeepDPM.py", line 433, in train_cluster_net data = dataset.data AttributeError: 'TensorDataset' object has no attribute 'data'
Hi! In regards to your first question, I've had a similar issue and it's a typo in the code. Check out my pull request with the fix: #45
Thank you for your answer. It was very useful and helped me solve problem 1. But after running, a new problem appeared immediately, that is,' Tensordataset' object has no attribute' data' (I think it is related to question 2? ) Have you ever met it?
Finished training! Traceback (most recent call last): File "DeepDPM.py", line 449, in <module> train_cluster_net() File "DeepDPM.py", line 433, in train_cluster_net data = dataset.data AttributeError: 'TensorDataset' object has no attribute 'data'
And there's a new error:
DeepDPM.py", line 449, in
Hi! I've only tried working with custom datasets and haven't encountered this issue yet
你好!我只尝试使用自定义数据集,还没有遇到这个问题
Thank you for your patient answer. I will continue to study it.
Hey @ShenZC25 ! Thank you @arthur-ver for your assistance in this issue also, I've updated the code too.
Regarding the second problem - we use the PyTorch interface to auto-download available datasets to your directory of choice (e.g., data). For example, if you run DeepDPM on the MNIST dataset, it would be automatically downloaded.
If you choose to use other datasets, you would need to download them yourself, and just point DeepDPM to the embeddings location using the --dir flag.