Building Chemistry Models

You can follow a simple workflow to create a new machine learning training procedure and train chemistry models.


Before you begin:
  • You must have the Therapeutics Data Scientist (BTD), Computational Structural Biologist (BCB), or the Computational Chemist (BCH) role to build chemistry models.
  • Data used for building models must be available in Data Factory Studio, Dataset Governance, or 3DDrive, and must follow certain requirements. For more information, see Data Storage Requirements.
  • You must have the Data Steward (DAS) role to use data sets from Dataset Governance to build models.
  • Model training consumes credits. For more information, see About Credits in Machine Learning Workbench.
See Also
About Model and Training Procedure Versioning
  1. From the home page, click New and select Chemistry Data.
  2. Choose the source from which you want to select the input data.

    • If choosing data from 3DDrive, drop the file in the workspace.
    • If choosing data from Dataset Governance, select a dataset.
    • If choosing data from Data Factory Studio, select a Bucket and File.

  3. Choose the modeling task type and category.
  4. Select a property in the Response Property list.
  5. Choose the modeling task Response Property Processing option.
    OptionDescription
    Convert to Binary Categories

    Use this option to create a binary classification target from a continuous-valued molecular property. The Conversion Operation and Category Boundary define a condition that divides the molecules into two classes. The positive class molecules satisfy the condition, and the negative class molecules do not.

    For example, if an Activity property takes values in the range (-1, 1), you can create a binary classification model that predicts whether a given molecule has a negative (toxic) value. In this case, you could use:

    • Conversion Operation: >=
    • Category Boundary: 1e-4
    • Preferred Category Label: Soluble
    Choose a Preferred Value

    Use this option to define a binary classification target from a discrete-valued molecular property. The positive class molecules have the Preferred Response Value—the negative class molecules do not.

    For example, if an Activity property takes values in the set {1, 2, 3}, you can create a binary classification model that predicts whether a molecule has an Activity value of 1. In this case, you can use:

    Preferred Response Value: 1

    Note: When using the Bayesian algorithm, if there is an imbalance, the algorithm works best when the Preferred Category Label or Preferred Response Value is the minority class.

  6. Choose the modeling task Features you want to use. Commonly used features are selected by default. You can remove selected features by clicking the next to the name, or select or remove them from the hierarchy. You can return to the original default values by clicking .

    Tips:
    • Use the statistics to choose the features.
    • Use the histogram to view the data distribution. For categorical data, the histogram displays 20 categories. For numerical data, the histogram displays 20 bins. For integers, you can choose to generate categorical or numerical histograms.

  7. Use the slider to split the data. Model validation is performed using one or more iterations of k-fold cross validation. In each iteration, a different random seed is used to split the data set into k-folds of roughly equal size.
    OptionDescription
    Iterations The number of iterations (1 to 10).
    Type Choose one for the following types:
    • Random: The data set is split into k-folds without giving consideration to which class a given sample belongs to.
    • Stratified Random: The relative frequency of each class is the same in each fold as it is in the data set. For example, if 30% of the samples in the data set belong to class A and 70% belong to class B, then for each fold, roughly 30% of the samples in the fold must belong to class A and 70% must belong to class B.
    k-Folds The number of k-folds (2 to 10).
  8. Optional: Select AutoML to generate the best performing model automatically.
    1. In the Optimization Target list, select the performance indicator to optimize.
    2. Select the number of initial random points and number of optimization iterations.
  9. Choose one or more learning algorithms. For information about the available algorithms for chemistry models, see Chemistry Model Algorithms.
    1. Choose an algorithm.

      Type Algorithms
      Classification algorithms if you have selected the AutoML option By default, LightGBM, Ridge, and SVM are selected.
      Classification algorithms if you have not selected the AutoML option Bayesian - Chemistry, KNN, LightGBM, Random Forest - Chemistry, Ridge, SVM, and XGBoost.
      Regression algorithms if you have selected the AutoML option By default, ElasticNet, LightGBM, and SVM are selected.
      Regression algorithms if you have not selected the AutoML option ElasticNet, Huber, KNN, Lasso, LightGBM, Ridge, SVM, and XGBoost.

    2. Click Add

      You can add more than one algorithm. If you add multiple algorithms, a training procedure is generated for each algorithm.

    3. Optional: Click and update the parameters.

      Note: There are no parameters available for the Bayesian - Chemistry algorithm.

    4. Optional: Click Remove to remove an algorithm.
  10. Enter a name in the Model field, and if required, a name in the Training Procedure field.

    Notes:
    • If you do not provide a name for the training procedure, the training procedure for your models does not appear in the Managing Training Procedures page. You can name the training procedure later from the Managing Models page. For more information, see Managing Models.
    • Do not include the following characters:
      ":/\#@=,|%;[]?*<>^

  11. Click Start Training.

Result: A training procedure is created, model building tasks begin, and the Tasks page opens.

What's Next