Skip to content

Evaluation arguments  #2

@Han8931

Description

@Han8931

Hi, I just finished training a Roberta model on IMDb like this

python train.py \
    --train imdb \
    --eval imdb \
    --model-type roberta \
    --model-save-path ./example \
    --num-epochs 4 \
    --num-clean-epochs 1 \
    --num-adv-examples 0.2 \
    --attack-epoch-interval 1 \
    --attack a2t \
    --learning-rate 5e-5 \
    --num-warmup-steps 100 \
    --grad-accumu-steps 1 \
    --checkpoint-interval-epochs 1 \
    --seed 42

and I tried to run the evaluation code

python evaluate.py \
    --dataset imdb \
    --model-type roberta \
    --checkpoint-paths ./example \
    --epoch 4 \
    --save-log \
    --accuracy \
    --robustness \
    --attacks a2t a2t_mlm textfooler bae pwws pso \
    --interpretability 

However, I got the following error

FileNotFoundError: [Errno 2] No such file or directory: './example/test_logs.json'

Did I miss something? In my example folder I can only see train_log.txt file with some checkpoint directories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions