liuqidong07/LEADER-pytorch

Topk filtering for Diagnosis or Procedures

Closed this issue · 3 comments

Hello, in data processing, you have filtered out diagnoses or procedures except for the top k, but have the drugs corresponding to the filtered diagnoses not been filtered out. Is there a problem with the processed data?

Hello, thanks for your interest in our work. Actually, we refer to the preprocessing code of GAMENet and SafeDrug. Could you please refer to the specific code in our repo?
Best,

Hello, thanks for your interest in our work. Actually, we refer to the preprocessing code of GAMENet and SafeDrug. Could you please refer to the specific code in our repo? Best,

Thank you for your reply. Here is the code I am referring to:
SafeDrug/data/processing.py line 162 diag_pd = filter_2000_most_diag(diag_pd)

Hello. In my view, this line will filter out redundant medication, diagnoses, and procedures.

def combine_process(med_pd, diag_pd, pro_pd):

You can check this function.
Best,