CuriousAI / mean-teacher

A state-of-the-art semi-supervised method for image recognition
https://arxiv.org/abs/1703.01780
Other
1.56k stars 331 forks source link

AttributeError: 'DataFrame' object has no attribute 'to_msgpack' #40

Closed bolin12 closed 4 years ago

bolin12 commented 4 years ago

Traceback (most recent call last): File "main.py", line 423, in main(RunContext(file, 0)) File "main.py", line 104, in main train(train_loader, model, ema_model, optimizer, epoch, training_log) File "main.py", line 310, in train **meters.sums() File "/home/lbl/work/mean-teacher-master/pytorch/mean_teacher/run_context.py", line 34, in record self._record(step, col_val_dict) File "/home/lbl/work/mean-teacher-master/pytorch/mean_teacher/run_context.py", line 45, in _record self.save() File "/home/lbl/work/mean-teacher-master/pytorch/mean_teacher/run_context.py", line 38, in save df.to_msgpack(self.log_file_path, compress='zlib') File "/home/lbl/miniconda3/lib/python3.7/site-packages/pandas/core/generic.py", line 5274, in getattr return object.getattribute(self, name) AttributeError: 'DataFrame' object has no attribute 'to_msgpack'

my pandas version is 1.0.1 and this function may be removed earlier, so what can i do?

Wangzheaos commented 4 years ago

更换版本pandas==0.20.3

chouqin3 commented 3 years ago

更换版本pandas==0.20.3

no work

yanghu819 commented 2 years ago

same problem+1