-
Notifications
You must be signed in to change notification settings - Fork 22
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
How is the code implemented on the fully labeled source data? #10
Comments
You can use all source labels by using the data split file without the suffix '_labeled_xx'. For example, there is a txt file 'amazon.txt' containing all label information. |
Sorry, I didn't quite understand. If I use this file“amazon.txt”, it's obviously incorrect to execute this command "CUDA_VISIBLE_DEVICES=0,1 python pcs/run.py --config config/office/D-A-1.json". |
I read the code again and find https://github.com/zhengzangw/PCS-FUDA/blob/master/pcs/agents/CDSAgent.py#L168, if the fewshot is None, then all should be used. Maybe you can try setting fewshot=None. (You can modify the config file to achieve this). If this does not work, you can rename the 'amazon.txt' to 'amazon_labeled_999' (999 is a nonsense word). And pass the 999 to the fewshot number. This hard-coded way can work, too, I think. |
I have tried the above ways. If the fewshot is None, it does not work. So we set the fewshot number to 500, but it shows the following error" RuntimeError: cannot perform reduction function max on tensor with no elements because the operation does not have an identity." This is very distressing to me. |
This is strange. Do you rename the file in |
Thanks, I'll think again about how to solve. |
Thank you very much for sharing the code! I have a problem that how is the code implemented by using full source labels?
The text was updated successfully, but these errors were encountered: