摘要: data是一个dataframe #data["x1"]=data[["a","b"]].apply(lambda x:x["a"]+x["b"],axis=1) data["x1"]=data.apply(lambda x:x["a"]+x["b"],axis=1) 一定要加axis=1,指定列, 阅读全文
posted @ 2020-11-27 17:23 qiezi_online 阅读(379) 评论(0) 推荐(0) 编辑
摘要: export BERT_BASE_DIR=/path/to/bert/uncased_L-12_H-768_A-12 export GLUE_DIR=/path/to/glue python run_classifier.py \ --task_name=MRPC \ --do_train=true 阅读全文
posted @ 2020-11-27 11:12 qiezi_online 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.cnblogs.com/sidianok/p/13176754.html 关键指令:nohup nohup command > myout.file 2>&1 & 例子: 推荐: nohup python -u abc.py > nohup.log 2>&1 & (加 阅读全文
posted @ 2020-11-27 10:55 qiezi_online 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1. 解压,对于tar格式和zip格式不同,后者是unzip test.zip ,如果要解压到指定路径是 unzip test.zip -d ../ 阅读全文
posted @ 2020-11-27 10:40 qiezi_online 阅读(65) 评论(0) 推荐(0) 编辑