Algorithms for Tabular Data Models

This topic describes the algorithm options available in Machine Learning Workbench for building tabular data models.

See Also
About Building Models
Building Tabular Data Models
Building Chemistry Models
Algorithm Description
ElasticNet Regression

Builds a regressor using ElasticNet Regression based on Scikit-Learn version 1.0.2. By default, it uses 5-fold cross-validation. It balances L1 (Lasso) and L2 (Ridge) regularization with l1_ratio=0.5. By default, an intercept term is fit (fit_intercept=True), and the learned coefficients can be both positive and negative (positive=False).

Fully Connected Neural Network Builds a multilayer feed forward neural network model using TensorFlow 2.9.2, for either classification or regression.

For binary classification, Sigmoid activation function is used for the last layer along with binary cross-entropy loss.

For multiclass problems, Softmax activation function is used for the last layer along with categorical cross entropy. By default, a linear activation function with mean absolute error loss (MAE) is used for regression. The layers design is flexible limited by a maximum model size supported.

Hidden layers use Relu activation function with batch normalization after each layer. In addition, L1 kernel regularization with 0.01 regularization factor is used at each layer. For more information, see TensorFlow documentation.

Adam optimizer is used for loss minimization. Learning rate drop and learning rate epochs control the learning rate reduction during the training. Early stopping patience monitors train loss progress to avoid inefficient computations. Automatic batch size specifies this parameter to a value that can potentially converge more efficiently.

Huber Regression

Builds a regressor using Huber Regression based on Scikit-Learn version 1.0.2, which is robust to outliers. The parameter epsilon defines the threshold for distinguishing inliers and outliers – lower values increase robustness (epsilon=1.35). L2 regularization strength is controlled by the parameter alpha (alpha=0.0001) with larger values increasing regularization strength. An intercept is fit by default (fit_intercept=True).

K Nearest Neighbors (KNN) Regression

Builds a regressor using K Nearest Neighbors based on Scikit-Learn version 1.0.2. By default, it predicts based on the 5 nearest neighbors (n_neighbors=5), with the contribution from each neighbor weighted equally (weights='uniform'). The distance between points is calculated using Euclidean distance (metric=’Minkowski’ with p=2).

K Nearest Neighbors (KNN) Classification

Builds a classifier using K Nearest Neighbors based on Scikit-Learn version 1.0.2. By default, it predicts based on the 5 nearest neighbors (n_neighbors=5), with the contribution from each neighbor weighted equally (weights='uniform'). Distance between points is calculated using Euclidean distance (metric=’Minkowski’ with p=2).

Lasso Regression

Builds a regressor using Lasso Regression based on Scikit-Learn version 1.0.2. It automatically performs 5-fold cross-validation to select the best regularization parameter. By default, an intercept term is fit (fit_intercept=True), and the learned coefficients can be both positive and negative (positive=False).

LightGBM Builds a classifier using LightGBM 3.3.2.

For binary classification, the binary log loss (binary) objective is used. For multiclass classification, the softmax objective (multiclass) is used. Unexposed parameter values are specified as the default values described in the LightGBM Parameters documentation.

Logistic Regression Builds a classifier using logistic regression based on Scikit-Learn version 1.0.2.

Logistic regression estimates the probability of the positive class given the input features, and then applies a threshold to make a final prediction. It is commonly used for binary classification problems. This implementation can also handle multiclass classification problems using a one-vs-rest technique.

Logistic regression is simpler and more interpretable than Random Forest, XGBoost, or LightGBM models. It can handle large data sets efficiently, and is less prone to overfitting.

You can use logistic regression to support the reasoning behind your predictions, comply with regulatory requirements, and achieve transparency and fairness. In addition, logistic regression can serve as a performance baseline to compare with other models.

This implementation uses a limited memory BFGS (L-BFGS or LM-BFGS) optimizer with "l2" weight regularization. Training is based on a grid search to find the optimum regularization strength of [1.e-04 1.e-02 1.e+00 1.e+02 1.e+04]. A stratified 5-fold cross validation is used to find the model with the best ROCAUC score.

For multiclass problems, classes are weighted differently where class weights are inferred from class frequencies in the input data to avoid overfitting to highly prevalent classes. Model weights include an intercept (bias).

Random Forest Classification Builds a random forest classifier.

This implementation has a maximum tree depth of 50. Gini index is used for ranking the desirability of splits in the data. Each class is weighted equally. The class for a node is the class with the greatest weighted sum of samples in the node, which makes it useful for unbalanced data sets. Bootstrap Aggregation is employed as an ensemble method, and up to 500,000 nodes are supported by the tree memory pool.

Ridge Regression

Builds a regressor using Ridge Regression based on Scikit-Learn version 1.0.2. It applies L2 regularization, which adds a penalty proportional to the square of the magnitude of the coefficients. The regularization strength is controlled by the alpha parameter (default=1.0), where larger values specify stronger regularization. By default, an intercept term is fit (fit_intercept=True), and the learned coefficients can be both positive and negative (positive=False).

Ridge Classification

Builds a classifier using Ridge Classification based on Scikit-Learn version 1.0.2. This classifier first converts target values to {-1, 1} and then treats the problem as a regression task. It uses L2 regularization controlled by the alpha parameter (default=1.0). By default, an intercept term is fit (fit_intercept=True), and the learned coefficients can be both positive and negative (positive=False). By default, classes are not weighted by their frequency in the training data (class_weight=None). Setting this to ‘balanced’ adjusts sample weights inversely to class frequencies.

SISSO Builds a regressor using the SISSO (Sure Independence Screening and Sparsifying Operator) algorithm. In addition to building a model, SISSO generates an equation, which is reported in the model report with LaTeX rendering. You can select the required binary operators and unary operators based on the nature of the data set. You can tune n_expand and n_term to determine the complexity of the equation.

SISSO supports only numerical features.

Support Vector Machine (SVM) Classification

Builds a classifier using Support Vector Machine based on Scikit-Learn version 1.0.2. The default regularization parameter C=1.0 balances model complexity and error. It uses a Radial Basis Function kernel (kernel=’rbf’) to handle nonlinear relationships. If a polynomial kernel is selected, its degree is 3 by default (degree=3), though it has no effect with the default 'rbf' kernel. By default, classes are not weighted by their frequency in the training data (class_weight=None). Setting this to ‘balanced’ adjusts sample weights inversely to class frequencies. By default, probability estimates are activated (probability=True)

Support Vector Machine (SVM) Regression

Builds a regressor using Support Vector Machine based on Scikit-Learn version 1.0.2. The default regularization parameter C=1.0 balances model complexity and error. It uses a Radial Basis Function kernel (kernel=’rbf’) to handle nonlinear relationships. If a polynomial kernel is selected, its degree is 3 by default (degree=3), though it has no effect with the default 'rbf' kernel. Epsilon defines the epsilon-tube, a margin around the predicted value where no penalty is applied to errors in the training loss function. Data points predicted within epsilon distance of the actual value incur no penalty.

XGBoost Builds a classifier using XGBoost 1.6.2.

For binary classification, the logistic regression (binary:logistic) objective is used. For multiclass classification, the softmax objective (multi:softprob) is used. Unexposed parameter values are specified as the default values described in the XGBoost Parameters documentation.