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

Cannot reproduce results on NCBI-Diseases #4

Closed
GanjinZero opened this issue Jan 9, 2022 · 6 comments
Closed

Cannot reproduce results on NCBI-Diseases #4

GanjinZero opened this issue Jan 9, 2022 · 6 comments

Comments

@GanjinZero
Copy link

I have downloaded embedding.pt and use

python cg_trainer.py --dataset ncbi-disease

to train NCBI-D.

I obtain results of {'top1_accuracy': 0.90833, 'top5_accuracy': 0.93958, 'top10_accuracy': 0.95625, 'top20_accuracy': 0.96042} which is lower than your reported 92.4.
Do I miss something to reproduce your results.

@GanjinZero
Copy link
Author

Results of another run:
{'top1_accuracy': 0.91667, 'top5_accuracy': 0.94688, 'top10_accuracy': 0.95208, 'top20_accuracy': 0.96042}

@laituan245
Copy link
Owner

Probably it is worth tuning the number of epochs. I will try training the model again in the near future. Let me know if you need the trained checkpoints.

@GanjinZero
Copy link
Author

Probably it is worth tuning the number of epochs. I will try training the model again in the near future. Let me know if you need the trained checkpoints.

Thanks for your reply. I want the hypermeters you trained for NCBI and checkpoints.

@laituan245
Copy link
Owner

laituan245 commented Jan 9, 2022

Trained checkpoint: https://drive.google.com/file/d/1JGCdFLKTsEoQ7HtslO47VjkymPytDgy_/view?usp=sharing

The hyper-parameters are all in the config file. But I used different number of epochs for different datasets. I do not remember them at the moment. So it may be worth tuning the number of epochs. I will try to retrain the models in the future.

@laituan245
Copy link
Owner

After downloading the ckpt, please set the path here https://github.com/laituan245/rescnn_bioel/blob/main/cg_trainer.py#L24

Results:

Test results: {'top1_accuracy': 0.92396, 'top5_accuracy': 0.94479, 'top10_accuracy': 0.95104, 'top20_accuracy': 0.95625}
continue?Prepared the optimizer and the scheduler

@GanjinZero
Copy link
Author

thank you!

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

2 participants