Icon

02_Hyperparameter Optimization_Bonus

Model Selection with Integrated Deployment

This workflow deploys an advanced parameter optimzation protocol with four machine learning methods. In this implementation the choice of features (fingerprints) and one hyperparameter per method are being optimized. However, we encourage to use this workflow as a template if you have completely different data and customize it by including additional parameters into the optimization loop.

Parameter optimization is performed on 80% of the original dataset. The optimization loops are encapsulated in Metanodes which carry the name of the machine learning methods. The model performances can be evaluted and the best model can be selected in the interactive view of the Pick best Model component. Finally, the selected model is scored using 20% of the dataset (that was not part of optimization cycle) and results are displayed with Model Report component.

The dataset represents a subset of 844 compounds evaluated for activity against CDPK1. 181 compounds inhibited CDPK1 with IC50 below 1uM and have "active" as their class.
More information is available https://chembl.gitbook.io/chembl-ntd/#deposited-set-19-5th-march-2016-uw-kinase-screening-hits. See Set 19.

This workflow a revised version of the original workflow: https://kni.me/w/-ATVMu9EmIURm8kr

Annotations and comments
  • 02_Hyperparameter Optimization_Bonus This workflow deploys an advanced parameter optimization protocol with four machine learning methods. In this implementation the choice of features (fingerprints) and one hyperparameter per method are being optimized. However, we encourage to use this workflow as a template if you have completely different data and customize it by including additional parameters into the optimization loop. Parameter optimization is performed on 80% of the original dataset. The optimization loops are encapsulated in grey Wrapped Metanodes which carry the name of the machine learning methods. Parameters leading to the highest enrichment factor on 5% of the data set are picked to build the best model. Finally, this model is scored using 20% of the dataset (that was not part of optimization cycle) and results are displayed with Model Report Wrapped Metanode.
  • 1. Read data
  • 2. Data preprocessing and partition data Select the column with class values and partition the data into a training set and a test set
  • 3. Parameter optimization Performed for each method separately
  • 4. Pick and deploy the final model
  • 5 Score the model with test data and present a report
  • 1: NB 2: LR 3: RF
  • 1: NB, LR, RF 2: XGB
  • AUC_ROC
  • sum
  • balanced accuracy
  • keep 1 row
  • binner
  • score binned
  • aggregate means
  • binning
  • row0
  • using INACTIVE as reference
  • keep FP for training
  • IDs and FPs
  • ECFP6
  • ECFP4
  • AtomPair
  • RDKit
  • ECFC6
  • switch_1
  • switch_2
  • switch_FP1
  • switch_FP2
  • add optimization parameters into table
  • stratified 80-20
  • epochs
  • reguralization method
  • FPs
  • variance of reguralization
  • Brute Force Fingerprint Choice Number of Epochs Add + adjust: Regularization method variance
  • stratified 80-20 partition and split column variables
  • 0: RF 1: LR 2: XGB
  • 0: NB 1: LR or RF or XGB
  • switch_method
  • switch1
  • num_active
  • num_inactive
  • method_full_name
  • Confusion Matrix
  • Title
  • Assay
  • NB
  • RF
  • LR
  • XGB
  • Brute Force Fingerprint Choice
  • 80/20 random stratified
  • pick activity column
  • random seed
  • assay_id
  • keep the selected
  • min leaf size
  • Brute Force Fingerprint Choice Number of Trees
  • boosting rounds
  • learning rate
  • maxDepth
  • Brute Force Fingerprint Choice Number of Models

Nodes

Extensions

Links