markers_bert icon indicating copy to clipboard operation
markers_bert copied to clipboard

Error in Evaluation

Open kansalaman opened this issue 5 years ago • 1 comments

I am not being able to run evaluation using the following command :

python ./Modeling/modeling_base.py \
      --data_dir=$DATA_DIR \
      --output_dir=$OUTPUT_DIR \
      --max_seq_length=512 \
      --do_eval \
      --per_gpu_eval_batch_size=32 \
      --per_gpu_train_batch_size=32 \
      --gradient_accumulation_steps=1 \
      --learning_rate=3e-6 \
      --weight_decay=0.01 \
      --adam_epsilon=1e-8 \
      --max_grad_norm=1.0 \
      --num_train_epochs=2 \
      --warmup_steps=10398 \
      --logging_steps=1000 \
      --save_steps=25996 \
      --seed=42 \
      --local_rank=-1 \
      --overwrite_output_dir

(note that I have removed do-train, since model has already been trained)

The following few are the issues I see here - In the code handling evaluation, {args.data_dir}/doc2query_run/base/run_dev.csv has been referenced. However there is no run_dev.csv in the first place. We downloaded run.dev.small.tsv in the earlier steps. Is this what is being referenced?

Secondly, if run.dev.small.tsv indeed is being referenced then also its in a different format (its not in the format - query, text, label). However the way the file is fed into dataset doesn't seem to handle this difference in format and hence the code fails to run.

Can someone help me out here? Quick response will be appreciated. Thanks!

kansalaman avatar Dec 22 '20 19:12 kansalaman

Did you solve this problem?

Jair-Gomes avatar Aug 10 '21 00:08 Jair-Gomes