Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link prediction results on the UMLS #1

Open
marspalLiu opened this issue Jan 9, 2022 · 0 comments
Open

Link prediction results on the UMLS #1

marspalLiu opened this issue Jan 9, 2022 · 0 comments

Comments

@marspalLiu
Copy link

Hello, Mr.Jaradeh. Sorry to disturb you. I have tried the example how to run UMLS with Sci-BERT on link prediction task, as you mentioned in the README file.

python3 exBERT.py --task htp \
     --do_train \
     --do_eval \
     --do_predict \
     --data_dir ./data/UMLS \
     --bert_model allenai/scibert_scivocab_uncased \
     --max_seq_length 15 \
     --train_batch_size 32 \
     --learning_rate 5e-5 \
     --num_train_epochs 8.0 \
     --output_dir ./output_UMLS/ \
     --gradient_accumulation_steps 1 \
     --eval_batch_size 135 \
     --fp16

And I got the following results:

test_loss:		0.8371883630752563
test_simple_accuracy:		0.7947677207483119
test_hits_left_@1:		0.12405446293494705
test_hits_right_@1:		0.12405446293494705
test_hits_@1:		0.12405446293494705
test_hits_left_@3:		0.41603630862329805
test_hits_right_@3:		0.41603630862329805
test_hits_@3:		0.41603630862329805
test_hits_left_@10:		0.9077155824508321
test_hits_right_@10:		0.9077155824508321
test_hits_@10:		0.9077155824508321
test_mean_rank_left:		5.193645990922844
test_mean_rank_right:		5.193645990922844
test_mean_rank:		5.193645990922844
test_mean_reciprocal_rank_left:		0.3445958540911836
test_mean_reciprocal_rank_right:		0.3445958540911836
test_mean_reciprocal_rank:		0.3445958540911836
test_runtime:		16.7289
test_samples_per_second:		1620.012
test_steps_per_second:		3.049

There is somewhat different from the results published in the paper. Is there something wrong with the process I'm running or someplace I forgot to modify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant