在pycharm中配置变量

实验目的:

python run_classifier.py \
  --task_name=MRPC \
  --do_train=true \
  --do_eval=true \
  --data_dir=$GLUE_DIR/MRPC \
  --vocab_file=$BERT_BASE_DIR/vocab.txt \
  --bert_config_file=$BERT_BASE_DIR/bert_config.json \
  --init_checkpoint=$BERT_BASE_DIR/bert_model.ckpt \
  --max_seq_length=128 \
  --train_batch_size=32 \
  --learning_rate=2e-5 \
  --num_train_epochs=3.0 \
  --output_dir=/tmp/mrpc_output/

1、找到要运行的文件(run_classifier.py)并右键

2、More Run/Debug --> Modify Run Configuration...

在pycharm中配置变量_第1张图片

3、在parameters一栏写入变量数值

在pycharm中配置变量_第2张图片 

 

你可能感兴趣的:(python,python,机器学习,人工智能)