"""Best params for each model phase by model"""

best_SVC_params_by_label = {'Blood and lymphatic system disorders': {'svc__C': 10,
                                                                     'svc__gamma': 0.01,
                                                                     'svc__kernel': 'rbf'},
                            'Cardiac disorders': {'svc__C': 10,
                                                  'svc__gamma': 0.1,
                                                  'svc__kernel': 'rbf'},
                            'Congenital, familial and genetic disorders': {'svc__C': 0.01,
                                                                           'svc__gamma': 1,
                                                                           'svc__kernel': 'rbf'},
                            'Ear and labyrinth disorders': {'svc__C': 10,
                                                            'svc__gamma': 0.01,
                                                            'svc__kernel': 'rbf'},
                            'Endocrine disorders': {'svc__C': 0.01,
                                                    'svc__gamma': 1,
                                                    'svc__kernel': 'rbf'},
                            'Eye disorders': {'svc__C': 10,
                                              'svc__gamma': 0.1,
                                              'svc__kernel': 'rbf'},
                            'Gastrointestinal disorders': {'svc__C': 0.01,
                                                           'svc__gamma': 1,
                                                           'svc__kernel': 'rbf'},
                            'General disorders and administration site conditions': {'svc__C': 0.01,
                                                                                     'svc__gamma': 1,
                                                                                     'svc__kernel': 'rbf'},
                            'Hepatobiliary disorders': {'svc__C': 1,
                                                        'svc__gamma': 0.01,
                                                        'svc__kernel': 'rbf'},
                            'Immune system disorders': {'svc__C': 1,
                                                        'svc__gamma': 0.1,
                                                        'svc__kernel': 'rbf'},
                            'Infections and infestations': {'svc__C': 0.01,
                                                            'svc__gamma': 1,
                                                            'svc__kernel': 'rbf'},
                            'Injury, poisoning and procedural complications': {'svc__C': 1,
                                                                               'svc__gamma': 0.1,
                                                                               'svc__kernel': 'rbf'},
                            'Metabolism and nutrition disorders': {'svc__C': 1,
                                                                   'svc__gamma': 0.1,
                                                                   'svc__kernel': 'rbf'},
                            'Musculoskeletal and connective tissue disorders': {'svc__C': 10,
                                                                                'svc__gamma': 0.1,
                                                                                'svc__kernel': 'rbf'},
                            'Neoplasms benign, malignant and unspecified (incl cysts and polyps)': {'svc__C': 0.01,
                                                                                                    'svc__gamma': 1,
                                                                                                    'svc__kernel': 'rbf'},
                            'Nervous system disorders': {'svc__C': 1,
                                                         'svc__gamma': 1,
                                                         'svc__kernel': 'rbf'},
                            'Pregnancy, puerperium and perinatal conditions': {'svc__C': 0.01,
                                                                               'svc__gamma': 1,
                                                                               'svc__kernel': 'rbf'},
                            'Psychiatric disorders': {'svc__C': 1,
                                                      'svc__gamma': 1,
                                                      'svc__kernel': 'rbf'},
                            'Renal and urinary disorders': {'svc__C': 1,
                                                            'svc__gamma': 0.01,
                                                            'svc__kernel': 'rbf'},
                            'Reproductive system and breast disorders': {'svc__C': 10,
                                                                         'svc__gamma': 0.01,
                                                                         'svc__kernel': 'rbf'},
                            'Respiratory, thoracic and mediastinal disorders': {'svc__C': 10,
                                                                                'svc__gamma': 1,
                                                                                'svc__kernel': 'rbf'},
                            'Skin and subcutaneous tissue disorders': {'svc__C': 0.01,
                                                                       'svc__gamma': 1,
                                                                       'svc__kernel': 'rbf'},
                            'Surgical and medical procedures': {'svc__C': 0.01,
                                                                'svc__gamma': 0.1,
                                                                'svc__kernel': 'rbf'},
                            'Vascular disorders': {'svc__C': 10,
                                                   'svc__gamma': 0.1,
                                                   'svc__kernel': 'rbf'}}

best_RF_params_by_label = {'Blood and lymphatic system disorders': {'randomforestclassifier__bootstrap': False,
                                                                    'randomforestclassifier__max_depth': 50,
                                                                    'randomforestclassifier__max_features': 'log2',
                                                                    'randomforestclassifier__min_samples_leaf': 2,
                                                                    'randomforestclassifier__min_samples_split': 10,
                                                                    'randomforestclassifier__n_estimators': 600},
                           'Cardiac disorders': {'randomforestclassifier__bootstrap': False,
                                                 'randomforestclassifier__max_depth': 210,
                                                 'randomforestclassifier__max_features': 'sqrt',
                                                 'randomforestclassifier__min_samples_leaf': 1,
                                                 'randomforestclassifier__min_samples_split': 5,
                                                 'randomforestclassifier__n_estimators': 700},
                           'Congenital, familial and genetic disorders': {'randomforestclassifier__bootstrap': False,
                                                                          'randomforestclassifier__max_depth': 170,
                                                                          'randomforestclassifier__max_features': 'sqrt',
                                                                          'randomforestclassifier__min_samples_leaf': 2,
                                                                          'randomforestclassifier__min_samples_split': 2,
                                                                          'randomforestclassifier__n_estimators': 300},
                           'Ear and labyrinth disorders': {'randomforestclassifier__bootstrap': False,
                                                           'randomforestclassifier__max_depth': 210,
                                                           'randomforestclassifier__max_features': 'log2',
                                                           'randomforestclassifier__min_samples_leaf': 1,
                                                           'randomforestclassifier__min_samples_split': 10,
                                                           'randomforestclassifier__n_estimators': 500},
                           'Endocrine disorders': {'randomforestclassifier__bootstrap': False,
                                                   'randomforestclassifier__max_depth': 50,
                                                   'randomforestclassifier__max_features': 'sqrt',
                                                   'randomforestclassifier__min_samples_leaf': 1,
                                                   'randomforestclassifier__min_samples_split': 10,
                                                   'randomforestclassifier__n_estimators': 400},
                           'Eye disorders': {'randomforestclassifier__bootstrap': False,
                                             'randomforestclassifier__max_depth': 170,
                                             'randomforestclassifier__max_features': 'log2',
                                             'randomforestclassifier__min_samples_leaf': 1,
                                             'randomforestclassifier__min_samples_split': 10,
                                             'randomforestclassifier__n_estimators': 400},
                           'Gastrointestinal disorders': {'randomforestclassifier__bootstrap': False,
                                                          'randomforestclassifier__max_depth': 90,
                                                          'randomforestclassifier__max_features': 'log2',
                                                          'randomforestclassifier__min_samples_leaf': 1,
                                                          'randomforestclassifier__min_samples_split': 10,
                                                          'randomforestclassifier__n_estimators': 900},
                           'General disorders and administration site conditions': {
                               'randomforestclassifier__bootstrap': False,
                               'randomforestclassifier__max_depth': 90,
                               'randomforestclassifier__max_features': 'log2',
                               'randomforestclassifier__min_samples_leaf': 1,
                               'randomforestclassifier__min_samples_split': 2,
                               'randomforestclassifier__n_estimators': 400},
                           'Hepatobiliary disorders': {'randomforestclassifier__bootstrap': True,
                                                       'randomforestclassifier__max_depth': 250,
                                                       'randomforestclassifier__max_features': 'sqrt',
                                                       'randomforestclassifier__min_samples_leaf': 1,
                                                       'randomforestclassifier__min_samples_split': 10,
                                                       'randomforestclassifier__n_estimators': 200},
                           'Immune system disorders': {'randomforestclassifier__bootstrap': True,
                                                       'randomforestclassifier__max_depth': 250,
                                                       'randomforestclassifier__max_features': 'sqrt',
                                                       'randomforestclassifier__min_samples_leaf': 1,
                                                       'randomforestclassifier__min_samples_split': 10,
                                                       'randomforestclassifier__n_estimators': 600},
                           'Infections and infestations': {'randomforestclassifier__bootstrap': True,
                                                           'randomforestclassifier__max_depth': 130,
                                                           'randomforestclassifier__max_features': 'log2',
                                                           'randomforestclassifier__min_samples_leaf': 1,
                                                           'randomforestclassifier__min_samples_split': 5,
                                                           'randomforestclassifier__n_estimators': 200},
                           'Injury, poisoning and procedural complications': {'randomforestclassifier__bootstrap': True,
                                                                              'randomforestclassifier__max_depth': 50,
                                                                              'randomforestclassifier__max_features': 'log2',
                                                                              'randomforestclassifier__min_samples_leaf': 1,
                                                                              'randomforestclassifier__min_samples_split': 10,
                                                                              'randomforestclassifier__n_estimators': 1000},
                           'Metabolism and nutrition disorders': {'randomforestclassifier__bootstrap': False,
                                                                  'randomforestclassifier__max_depth': 90,
                                                                  'randomforestclassifier__max_features': 'sqrt',
                                                                  'randomforestclassifier__min_samples_leaf': 1,
                                                                  'randomforestclassifier__min_samples_split': 5,
                                                                  'randomforestclassifier__n_estimators': 400},
                           'Musculoskeletal and connective tissue disorders': {
                               'randomforestclassifier__bootstrap': False,
                               'randomforestclassifier__max_depth': 170,
                               'randomforestclassifier__max_features': 'log2',
                               'randomforestclassifier__min_samples_leaf': 1,
                               'randomforestclassifier__min_samples_split': 10,
                               'randomforestclassifier__n_estimators': 800},
                           'Neoplasms benign, malignant and unspecified (incl cysts and polyps)': {
                               'randomforestclassifier__bootstrap': False,
                               'randomforestclassifier__max_depth': 210,
                               'randomforestclassifier__max_features': 'sqrt',
                               'randomforestclassifier__min_samples_leaf': 1,
                               'randomforestclassifier__min_samples_split': 10,
                               'randomforestclassifier__n_estimators': 400},
                           'Nervous system disorders': {'randomforestclassifier__bootstrap': False,
                                                        'randomforestclassifier__max_depth': 250,
                                                        'randomforestclassifier__max_features': 'sqrt',
                                                        'randomforestclassifier__min_samples_leaf': 1,
                                                        'randomforestclassifier__min_samples_split': 10,
                                                        'randomforestclassifier__n_estimators': 300},
                           'Pregnancy, puerperium and perinatal conditions': {'randomforestclassifier__bootstrap': True,
                                                                              'randomforestclassifier__max_depth': 210,
                                                                              'randomforestclassifier__max_features': 'log2',
                                                                              'randomforestclassifier__min_samples_leaf': 1,
                                                                              'randomforestclassifier__min_samples_split': 2,
                                                                              'randomforestclassifier__n_estimators': 700},
                           'Psychiatric disorders': {'randomforestclassifier__bootstrap': False,
                                                     'randomforestclassifier__max_depth': 50,
                                                     'randomforestclassifier__max_features': 'log2',
                                                     'randomforestclassifier__min_samples_leaf': 1,
                                                     'randomforestclassifier__min_samples_split': 2,
                                                     'randomforestclassifier__n_estimators': 100},
                           'Renal and urinary disorders': {'randomforestclassifier__bootstrap': False,
                                                           'randomforestclassifier__max_depth': 170,
                                                           'randomforestclassifier__max_features': 'log2',
                                                           'randomforestclassifier__min_samples_leaf': 2,
                                                           'randomforestclassifier__min_samples_split': 5,
                                                           'randomforestclassifier__n_estimators': 500},
                           'Reproductive system and breast disorders': {'randomforestclassifier__bootstrap': False,
                                                                        'randomforestclassifier__max_depth': 50,
                                                                        'randomforestclassifier__max_features': 'log2',
                                                                        'randomforestclassifier__min_samples_leaf': 1,
                                                                        'randomforestclassifier__min_samples_split': 10,
                                                                        'randomforestclassifier__n_estimators': 200},
                           'Respiratory, thoracic and mediastinal disorders': {
                               'randomforestclassifier__bootstrap': False,
                               'randomforestclassifier__max_depth': 210,
                               'randomforestclassifier__max_features': 'sqrt',
                               'randomforestclassifier__min_samples_leaf': 1,
                               'randomforestclassifier__min_samples_split': 10,
                               'randomforestclassifier__n_estimators': 100},
                           'Skin and subcutaneous tissue disorders': {'randomforestclassifier__bootstrap': False,
                                                                      'randomforestclassifier__max_depth': 210,
                                                                      'randomforestclassifier__max_features': 'sqrt',
                                                                      'randomforestclassifier__min_samples_leaf': 1,
                                                                      'randomforestclassifier__min_samples_split': 5,
                                                                      'randomforestclassifier__n_estimators': 300},
                           'Surgical and medical procedures': {'randomforestclassifier__bootstrap': False,
                                                               'randomforestclassifier__max_depth': 210,
                                                               'randomforestclassifier__max_features': 'sqrt',
                                                               'randomforestclassifier__min_samples_leaf': 1,
                                                               'randomforestclassifier__min_samples_split': 10,
                                                               'randomforestclassifier__n_estimators': 800},
                           'Vascular disorders': {'randomforestclassifier__bootstrap': False,
                                                  'randomforestclassifier__max_depth': 170,
                                                  'randomforestclassifier__max_features': 'log2',
                                                  'randomforestclassifier__min_samples_leaf': 1,
                                                  'randomforestclassifier__min_samples_split': 10,
                                                  'randomforestclassifier__n_estimators': 400}}

best_xgb_params_by_label = {'Blood and lymphatic system disorders': {'xgbclassifier__colsample_bytree': 0.6,
                                                                     'xgbclassifier__eta': 0.2,
                                                                     'xgbclassifier__gamma': 0.3,
                                                                     'xgbclassifier__max_depth': 7,
                                                                     'xgbclassifier__min_child_weight': 1,
                                                                     'xgbclassifier__subsample': 0.6},
                            'Cardiac disorders': {'xgbclassifier__colsample_bytree': 0.6,
                                                  'xgbclassifier__eta': 0.2,
                                                  'xgbclassifier__gamma': 0.4,
                                                  'xgbclassifier__max_depth': 9,
                                                  'xgbclassifier__min_child_weight': 1,
                                                  'xgbclassifier__subsample': 0.6},
                            'Congenital, familial and genetic disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                                           'xgbclassifier__eta': 0.2,
                                                                           'xgbclassifier__gamma': 0.2,
                                                                           'xgbclassifier__max_depth': 9,
                                                                           'xgbclassifier__min_child_weight': 1,
                                                                           'xgbclassifier__subsample': 0.9},
                            'Ear and labyrinth disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                            'xgbclassifier__eta': 0.1,
                                                            'xgbclassifier__gamma': 0.1,
                                                            'xgbclassifier__max_depth': 7,
                                                            'xgbclassifier__min_child_weight': 1,
                                                            'xgbclassifier__subsample': 0.7},
                            'Endocrine disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                                    'xgbclassifier__eta': 0.1,
                                                    'xgbclassifier__gamma': 0.1,
                                                    'xgbclassifier__max_depth': 9,
                                                    'xgbclassifier__min_child_weight': 1,
                                                    'xgbclassifier__subsample': 0.8},
                            'Eye disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                              'xgbclassifier__eta': 0.2,
                                              'xgbclassifier__gamma': 0.1,
                                              'xgbclassifier__max_depth': 9,
                                              'xgbclassifier__min_child_weight': 1,
                                              'xgbclassifier__subsample': 0.6},
                            'Gastrointestinal disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                                           'xgbclassifier__eta': 0.1,
                                                           'xgbclassifier__gamma': 0,
                                                           'xgbclassifier__max_depth': 9,
                                                           'xgbclassifier__min_child_weight': 1,
                                                           'xgbclassifier__subsample': 0.6},
                            'General disorders and administration site conditions': {
                                'xgbclassifier__colsample_bytree': 0.7,
                                'xgbclassifier__eta': 0.1,
                                'xgbclassifier__gamma': 0.2,
                                'xgbclassifier__max_depth': 7,
                                'xgbclassifier__min_child_weight': 1,
                                'xgbclassifier__subsample': 0.7},
                            'Hepatobiliary disorders': {'xgbclassifier__colsample_bytree': 0.9,
                                                        'xgbclassifier__eta': 0.1,
                                                        'xgbclassifier__gamma': 0.4,
                                                        'xgbclassifier__max_depth': 5,
                                                        'xgbclassifier__min_child_weight': 1,
                                                        'xgbclassifier__subsample': 0.6},
                            'Immune system disorders': {'xgbclassifier__colsample_bytree': 0.6,
                                                        'xgbclassifier__eta': 0.1,
                                                        'xgbclassifier__gamma': 0.4,
                                                        'xgbclassifier__max_depth': 7,
                                                        'xgbclassifier__min_child_weight': 1,
                                                        'xgbclassifier__subsample': 0.6},
                            'Infections and infestations': {'xgbclassifier__colsample_bytree': 0.8,
                                                            'xgbclassifier__eta': 0.1,
                                                            'xgbclassifier__gamma': 0.4,
                                                            'xgbclassifier__max_depth': 5,
                                                            'xgbclassifier__min_child_weight': 1,
                                                            'xgbclassifier__subsample': 0.7},
                            'Injury, poisoning and procedural complications': {'xgbclassifier__colsample_bytree': 0.8,
                                                                               'xgbclassifier__eta': 0.1,
                                                                               'xgbclassifier__gamma': 0,
                                                                               'xgbclassifier__max_depth': 9,
                                                                               'xgbclassifier__min_child_weight': 1,
                                                                               'xgbclassifier__subsample': 0.9},
                            'Metabolism and nutrition disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                                   'xgbclassifier__eta': 0.05,
                                                                   'xgbclassifier__gamma': 0.3,
                                                                   'xgbclassifier__max_depth': 9,
                                                                   'xgbclassifier__min_child_weight': 1,
                                                                   'xgbclassifier__subsample': 0.8},
                            'Musculoskeletal and connective tissue disorders': {'xgbclassifier__colsample_bytree': 0.6,
                                                                                'xgbclassifier__eta': 0.2,
                                                                                'xgbclassifier__gamma': 0.3,
                                                                                'xgbclassifier__max_depth': 9,
                                                                                'xgbclassifier__min_child_weight': 1,
                                                                                'xgbclassifier__subsample': 0.7},
                            'Neoplasms benign, malignant and unspecified (incl cysts and polyps)': {
                                'xgbclassifier__colsample_bytree': 0.9,
                                'xgbclassifier__eta': 0.05,
                                'xgbclassifier__gamma': 0,
                                'xgbclassifier__max_depth': 7,
                                'xgbclassifier__min_child_weight': 1,
                                'xgbclassifier__subsample': 0.9},
                            'Nervous system disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                         'xgbclassifier__eta': 0.1,
                                                         'xgbclassifier__gamma': 0.4,
                                                         'xgbclassifier__max_depth': 7,
                                                         'xgbclassifier__min_child_weight': 3,
                                                         'xgbclassifier__subsample': 0.7},
                            'Pregnancy, puerperium and perinatal conditions': {'xgbclassifier__colsample_bytree': 0.8,
                                                                               'xgbclassifier__eta': 0.1,
                                                                               'xgbclassifier__gamma': 0.3,
                                                                               'xgbclassifier__max_depth': 7,
                                                                               'xgbclassifier__min_child_weight': 1,
                                                                               'xgbclassifier__subsample': 0.9},
                            'Psychiatric disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                      'xgbclassifier__eta': 0.2,
                                                      'xgbclassifier__gamma': 0,
                                                      'xgbclassifier__max_depth': 5,
                                                      'xgbclassifier__min_child_weight': 1,
                                                      'xgbclassifier__subsample': 0.8},
                            'Renal and urinary disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                            'xgbclassifier__eta': 0.1,
                                                            'xgbclassifier__gamma': 0.3,
                                                            'xgbclassifier__max_depth': 7,
                                                            'xgbclassifier__min_child_weight': 1,
                                                            'xgbclassifier__subsample': 0.8},
                            'Reproductive system and breast disorders': {'xgbclassifier__colsample_bytree': 0.6,
                                                                         'xgbclassifier__eta': 0.05,
                                                                         'xgbclassifier__gamma': 0.2,
                                                                         'xgbclassifier__max_depth': 7,
                                                                         'xgbclassifier__min_child_weight': 1,
                                                                         'xgbclassifier__subsample': 0.7},
                            'Respiratory, thoracic and mediastinal disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                                                                'xgbclassifier__eta': 0.2,
                                                                                'xgbclassifier__gamma': 0.2,
                                                                                'xgbclassifier__max_depth': 9,
                                                                                'xgbclassifier__min_child_weight': 1,
                                                                                'xgbclassifier__subsample': 0.9},
                            'Skin and subcutaneous tissue disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                                                       'xgbclassifier__eta': 0.05,
                                                                       'xgbclassifier__gamma': 0,
                                                                       'xgbclassifier__max_depth': 9,
                                                                       'xgbclassifier__min_child_weight': 1,
                                                                       'xgbclassifier__subsample': 0.6},
                            'Surgical and medical procedures': {'xgbclassifier__colsample_bytree': 0.9,
                                                                'xgbclassifier__eta': 0.2,
                                                                'xgbclassifier__gamma': 0.1,
                                                                'xgbclassifier__max_depth': 7,
                                                                'xgbclassifier__min_child_weight': 3,
                                                                'xgbclassifier__subsample': 0.9},
                            'Vascular disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                                   'xgbclassifier__eta': 0.05,
                                                   'xgbclassifier__gamma': 0.3,
                                                   'xgbclassifier__max_depth': 9,
                                                   'xgbclassifier__min_child_weight': 3,
                                                   'xgbclassifier__subsample': 0.6}}

best_model_by_label = {'Blood and lymphatic system disorders': 'RF',
                       'Cardiac disorders': 'RF',
                       'Congenital, familial and genetic disorders': 'XGB',
                       'Ear and labyrinth disorders': 'SVC',
                       'Endocrine disorders': 'XGB',
                       'Eye disorders': 'RF',
                       'Gastrointestinal disorders': 'RF',
                       'General disorders and administration site conditions': 'RF',
                       'Hepatobiliary disorders': 'RF',
                       'Immune system disorders': 'SVC',
                       'Infections and infestations': 'RF',
                       'Injury, poisoning and procedural complications': 'RF',
                       'Metabolism and nutrition disorders': 'RF',
                       'Musculoskeletal and connective tissue disorders': 'RF',
                       'Neoplasms benign, malignant and unspecified (incl cysts and polyps)': 'XGB',
                       'Nervous system disorders': 'RF',
                       'Pregnancy, puerperium and perinatal conditions': 'XGB',
                       'Psychiatric disorders': 'RF',
                       'Renal and urinary disorders': 'RF',
                       'Reproductive system and breast disorders': 'RF',
                       'Respiratory, thoracic and mediastinal disorders': 'RF',
                       'Skin and subcutaneous tissue disorders': 'RF',
                       'Surgical and medical procedures': 'XGB',
                       'Vascular disorders': 'SVC'}

best_model_params_by_label = {'Blood and lymphatic system disorders': {'randomforestclassifier__bootstrap': False,
                                                                       'randomforestclassifier__max_depth': 50,
                                                                       'randomforestclassifier__max_features': 'log2',
                                                                       'randomforestclassifier__min_samples_leaf': 2,
                                                                       'randomforestclassifier__min_samples_split': 10,
                                                                       'randomforestclassifier__n_estimators': 600},
                              'Cardiac disorders': {'randomforestclassifier__bootstrap': False,
                                                    'randomforestclassifier__max_depth': 210,
                                                    'randomforestclassifier__max_features': 'sqrt',
                                                    'randomforestclassifier__min_samples_leaf': 1,
                                                    'randomforestclassifier__min_samples_split': 5,
                                                    'randomforestclassifier__n_estimators': 700},
                              'Congenital, familial and genetic disorders': {'xgbclassifier__colsample_bytree': 0.8,
                                                                             'xgbclassifier__eta': 0.2,
                                                                             'xgbclassifier__gamma': 0.2,
                                                                             'xgbclassifier__max_depth': 9,
                                                                             'xgbclassifier__min_child_weight': 1,
                                                                             'xgbclassifier__subsample': 0.9},
                              'Ear and labyrinth disorders': {'svc__C': 10,
                                                              'svc__gamma': 0.01,
                                                              'svc__kernel': 'rbf'},
                              'Endocrine disorders': {'xgbclassifier__colsample_bytree': 0.7,
                                                      'xgbclassifier__eta': 0.1,
                                                      'xgbclassifier__gamma': 0.1,
                                                      'xgbclassifier__max_depth': 9,
                                                      'xgbclassifier__min_child_weight': 1,
                                                      'xgbclassifier__subsample': 0.8},
                              'Eye disorders': {'randomforestclassifier__bootstrap': False,
                                                'randomforestclassifier__max_depth': 170,
                                                'randomforestclassifier__max_features': 'log2',
                                                'randomforestclassifier__min_samples_leaf': 1,
                                                'randomforestclassifier__min_samples_split': 10,
                                                'randomforestclassifier__n_estimators': 400},
                              'Gastrointestinal disorders': {'randomforestclassifier__bootstrap': False,
                                                             'randomforestclassifier__max_depth': 90,
                                                             'randomforestclassifier__max_features': 'log2',
                                                             'randomforestclassifier__min_samples_leaf': 1,
                                                             'randomforestclassifier__min_samples_split': 10,
                                                             'randomforestclassifier__n_estimators': 900},
                              'General disorders and administration site conditions': {
                                  'randomforestclassifier__bootstrap': False,
                                  'randomforestclassifier__max_depth': 90,
                                  'randomforestclassifier__max_features': 'log2',
                                  'randomforestclassifier__min_samples_leaf': 1,
                                  'randomforestclassifier__min_samples_split': 2,
                                  'randomforestclassifier__n_estimators': 400},
                              'Hepatobiliary disorders': {'randomforestclassifier__bootstrap': True,
                                                          'randomforestclassifier__max_depth': 250,
                                                          'randomforestclassifier__max_features': 'sqrt',
                                                          'randomforestclassifier__min_samples_leaf': 1,
                                                          'randomforestclassifier__min_samples_split': 10,
                                                          'randomforestclassifier__n_estimators': 200},
                              'Immune system disorders': {'svc__C': 1,
                                                          'svc__gamma': 0.1,
                                                          'svc__kernel': 'rbf'},
                              'Infections and infestations': {'randomforestclassifier__bootstrap': True,
                                                              'randomforestclassifier__max_depth': 130,
                                                              'randomforestclassifier__max_features': 'log2',
                                                              'randomforestclassifier__min_samples_leaf': 1,
                                                              'randomforestclassifier__min_samples_split': 5,
                                                              'randomforestclassifier__n_estimators': 200},
                              'Injury, poisoning and procedural complications': {
                                  'randomforestclassifier__bootstrap': True,
                                  'randomforestclassifier__max_depth': 50,
                                  'randomforestclassifier__max_features': 'log2',
                                  'randomforestclassifier__min_samples_leaf': 1,
                                  'randomforestclassifier__min_samples_split': 10,
                                  'randomforestclassifier__n_estimators': 1000},
                              'Metabolism and nutrition disorders': {'randomforestclassifier__bootstrap': False,
                                                                     'randomforestclassifier__max_depth': 90,
                                                                     'randomforestclassifier__max_features': 'sqrt',
                                                                     'randomforestclassifier__min_samples_leaf': 1,
                                                                     'randomforestclassifier__min_samples_split': 5,
                                                                     'randomforestclassifier__n_estimators': 400},
                              'Musculoskeletal and connective tissue disorders': {
                                  'randomforestclassifier__bootstrap': False,
                                  'randomforestclassifier__max_depth': 170,
                                  'randomforestclassifier__max_features': 'log2',
                                  'randomforestclassifier__min_samples_leaf': 1,
                                  'randomforestclassifier__min_samples_split': 10,
                                  'randomforestclassifier__n_estimators': 800},
                              'Neoplasms benign, malignant and unspecified (incl cysts and polyps)': {
                                  'xgbclassifier__colsample_bytree': 0.9,
                                  'xgbclassifier__eta': 0.05,
                                  'xgbclassifier__gamma': 0,
                                  'xgbclassifier__max_depth': 7,
                                  'xgbclassifier__min_child_weight': 1,
                                  'xgbclassifier__subsample': 0.9},
                              'Nervous system disorders': {'randomforestclassifier__bootstrap': False,
                                                           'randomforestclassifier__max_depth': 250,
                                                           'randomforestclassifier__max_features': 'sqrt',
                                                           'randomforestclassifier__min_samples_leaf': 1,
                                                           'randomforestclassifier__min_samples_split': 10,
                                                           'randomforestclassifier__n_estimators': 300},
                              'Pregnancy, puerperium and perinatal conditions': {'xgbclassifier__colsample_bytree': 0.8,
                                                                                 'xgbclassifier__eta': 0.1,
                                                                                 'xgbclassifier__gamma': 0.3,
                                                                                 'xgbclassifier__max_depth': 7,
                                                                                 'xgbclassifier__min_child_weight': 1,
                                                                                 'xgbclassifier__subsample': 0.9},
                              'Psychiatric disorders': {'randomforestclassifier__bootstrap': False,
                                                        'randomforestclassifier__max_depth': 50,
                                                        'randomforestclassifier__max_features': 'log2',
                                                        'randomforestclassifier__min_samples_leaf': 1,
                                                        'randomforestclassifier__min_samples_split': 2,
                                                        'randomforestclassifier__n_estimators': 100},
                              'Renal and urinary disorders': {'randomforestclassifier__bootstrap': False,
                                                              'randomforestclassifier__max_depth': 170,
                                                              'randomforestclassifier__max_features': 'log2',
                                                              'randomforestclassifier__min_samples_leaf': 2,
                                                              'randomforestclassifier__min_samples_split': 5,
                                                              'randomforestclassifier__n_estimators': 500},
                              'Reproductive system and breast disorders': {'randomforestclassifier__bootstrap': False,
                                                                           'randomforestclassifier__max_depth': 50,
                                                                           'randomforestclassifier__max_features': 'log2',
                                                                           'randomforestclassifier__min_samples_leaf': 1,
                                                                           'randomforestclassifier__min_samples_split': 10,
                                                                           'randomforestclassifier__n_estimators': 200},
                              'Respiratory, thoracic and mediastinal disorders': {
                                  'randomforestclassifier__bootstrap': False,
                                  'randomforestclassifier__max_depth': 210,
                                  'randomforestclassifier__max_features': 'sqrt',
                                  'randomforestclassifier__min_samples_leaf': 1,
                                  'randomforestclassifier__min_samples_split': 10,
                                  'randomforestclassifier__n_estimators': 100},
                              'Skin and subcutaneous tissue disorders': {'randomforestclassifier__bootstrap': False,
                                                                         'randomforestclassifier__max_depth': 210,
                                                                         'randomforestclassifier__max_features': 'sqrt',
                                                                         'randomforestclassifier__min_samples_leaf': 1,
                                                                         'randomforestclassifier__min_samples_split': 5,
                                                                         'randomforestclassifier__n_estimators': 300},
                              'Surgical and medical procedures': {'xgbclassifier__colsample_bytree': 0.9,
                                                                  'xgbclassifier__eta': 0.2,
                                                                  'xgbclassifier__gamma': 0.1,
                                                                  'xgbclassifier__max_depth': 7,
                                                                  'xgbclassifier__min_child_weight': 3,
                                                                  'xgbclassifier__subsample': 0.9},
                              'Vascular disorders': {'svc__C': 10,
                                                     'svc__gamma': 0.1,
                                                     'svc__kernel': 'rbf'}}
