clinical-outcome-prediction icon indicating copy to clipboard operation
clinical-outcome-prediction copied to clipboard

Code for training the CORE model

Open NtaylorOX opened this issue 1 year ago • 1 comments

Great work - although I am struggling to tell if there is the code for the pre-training of the CORE model?

I.e. the training/knowledge integration steps described in the paper?

Any help would be much appreciated.

Thanks

NtaylorOX avatar Mar 22 '23 14:03 NtaylorOX

Hi Niall,

Yes, the code is included in this repo. You would first need to generate the pre-training data from the scripts you can find in the tasks folders adm_dis_match_.... If you want to create a combined pre-training from all the sources, you can combine the generated files with combine_pretrain_tasks.py.

Then you can use the code in outcome_pretraining.py to apply the pre-training to an existing model, e.g. BioBERT.

Hope that helps! Betty

bvanaken avatar Apr 11 '23 11:04 bvanaken