{"dataset": "bigcode_python_code", "docid": "", "text": "\"\"\" Example for MOGONET classification\n\"\"\"\nfrom train_test import train_test\n\nif __name__ == \"__main__\": \n data_folder = 'ROSMAP'\n view_list = [1,2,3]\n num_epoch_pretrain = 500\n num_epoch = 2500\n lr_e_pretrain = 1e-3\n lr_e = 5e-4\n lr_c = 1e-3\n \n if data_folder == 'ROSMAP':\n num_class = 2\n if data_folder == 'BRCA':\n num_class = 5\n \n train_test(data_folder, view_list, num_class,\n lr_e_pretrain, lr_e, lr_c, \n num_epoch_pretrain, num_epoch) ", "metadata": "{\"size\": 534, \"lang\": \"Python\", \"max_stars_repo_path\": \"main_mogonet.py\", \"max_stars_repo_name\": \"txWang/MOGONET\", \"avg_line_length\": 25.4285714286, \"max_line_length\": 58, \"alphanum_fraction\": 0.5898876404, \"__id__\": 8519747, \"nl_ratio\": 0.06367041198501873}", "reason": "", "annotator": "", "campaign": "", "timestamp": "2023-04-08 07:03:32.512397"} | |