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

为什么会提示AttributeError: 'bool' object has no attribute 'mean' #68

Open
Dxy-cpu opened this issue Nov 20, 2021 · 3 comments
Open

Comments

@Dxy-cpu
Copy link

Dxy-cpu commented Nov 20, 2021

1637408331(1)

@timoschick
Copy link
Owner

Hi @Dxy-cpu, could you provide some further information? What command are you using to run PET? What dataset are you training on? The error seems to occur when the model computes predictions for the unlabeled data, so it would also be interesting to know how much unlabeled data you are providing via your DataProcessor's get_unlabeled_examples method.

@Dxy-cpu
Copy link
Author

Dxy-cpu commented Dec 8, 2021

Thank you very much for your reply! I am training the model on the dataset of the CB task. The command is “
!python cli.py
--method pet
--pattern_ids 0 1 2 3 4
--data_dir /content/drive/MyDrive/pet-master/fewglue-master/FewGLUE/CB
--model_type albert
--model_name_or_path albert-xxlarge-v2
--task_name cb
--output_dir output_dir
--do_train
--do_eval
When there is a problem in scientific research, I am undoubtedly very pleased to see your reply. I am very happy that the program is now running normally.

@hjing100
Copy link

你好,请问可以用于中文语料吗

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

3 participants