pet icon indicating copy to clipboard operation
pet copied to clipboard

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

Open Dxy-cpu opened this issue 4 years ago • 3 comments

1637408331(1)

Dxy-cpu avatar Nov 20 '21 11:11 Dxy-cpu

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.

timoschick avatar Dec 07 '21 17:12 timoschick

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.

Dxy-cpu avatar Dec 08 '21 02:12 Dxy-cpu

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

hjing100 avatar Feb 26 '23 08:02 hjing100