jsd(column, baseline) | The Jensen-Shannon distance of column column with respect to baseline baseline. | jsd(Any, String) | Number | jsd(column1, 'my_baseline') |
psi(column, baseline) | The population stability index of column column with respect to baseline baseline. | psi(Any, String) | Number | psi(column1, 'my_baseline') |
null_violation_count(column) | Number of rows with null values in column column. | null_violation_count(Any) | Number | null_violation_count(column1) |
range_violation_count(column) | Number of rows with out-of-range values in column column. | range_violation_count(Any) | Number | range_violation_count(column1) |
type_violation_count(column) | Number of rows with invalid data types in column column. | type_violation_count(Any) | Number | type_violation_count(column1) |
any_violation_count(column) | Number of rows with at least one Data Integrity violation in column. | any_violation_count(Any) | Number | any_violation_count(column1) |
traffic() | Total row count. Includes null rows. | traffic() | Number | traffic() |
tp(class) | True positive boolean state. Available for binary classification and multiclass classification models. For multiclass, class is used to specify the positive class. | tp(class=Optional[String]) | Boolean | <p><code>tp()</code><br><code>tp(class=‘class1’)</code></p> |
tn(class) | True negative boolean state. Available for binary classification and multiclass classification models. For multiclass, class is used to specify the positive class. | tn(class=Optional[String]) | Boolean | <p><code>tn()</code><br><code>tn(class=‘class1’)</code></p> |
fp(class) | False positive boolean state. Available for binary classification and multiclass classification models. For multiclass, class is used to specify the positive class. | fp(class=Optional[String]) | Boolean | <p><code>fp()</code><br><code>fp(class=‘class1’)</code></p> |
fn(class) | False negative boolean state. Available for binary classification and multiclass classification models. For multiclass, class is used to specify the positive class. | fn(class=Optional[String]) | Boolean | <p><code>fn()</code><br><code>fn(class=‘class1’)</code></p> |
precision(target, threshold) | <p>Precision between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | precision(target=Optional[Any], threshold=Optional[Number]) | Number | <p><code>precision()</code><br><code>precision(target=column1)</code><br><code>precision(threshold=0.5)</code><br><code>precision(target=column1, threshold=0.5)</code></p> |
recall(target, threshold) | <p>Recall between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | recall(target=Optional[Any], threshold=Optional[Number]) | Number | <p><code>recall()</code><br><code>recall(target=column1)</code><br><code>recall(threshold=0.5)</code><br><code>recall(target=column1, threshold=0.5)</code></p> |
f1_score(target, threshold) | <p>F1 score between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | f1_score(target=Optional[Any], threshold=Optional[Number]) | Number | <p><code>f1_score()</code><br><code>f1_score(target=column1)</code><br><code>f1_score(threshold=0.5)</code><br><code>f1_score(target=column1, threshold=0.5)</code></p> |
fpr(target, threshold) | <p>False positive rate between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | fpr(target=Optional[Any], threshold=Optional[Number]) | Number | <p><code>fpr()</code><br><code>fpr(target=column1)</code><br><code>fpr(threshold=0.5)</code><br><code>fpr(target=column1, threshold=0.5)</code></p> |
auroc(target) | <p>Area under the ROC curve between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | auroc(target=Optional[Any]) | Number | <p><code>auroc()</code><br><code>auroc(target=column1)</code></p> |
geometric_mean(target, threshold) | <p>Geometric mean score between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | geometric_mean(target=Optional[Any], threshold=Optional[Number]) | Number | <p><code>geometric_mean()</code><br><code>geometric_mean(target=column1)</code><br><code>geometric_mean(threshold=0.5)</code><br><code>geometric_mean(target=column1, threshold=0.5)</code></p> |
expected_calibration_error(target) | <p>Expected calibration error between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | expected_calibration_error(target=Optional[Any]) | Number | <p><code>expected_calibration_error()</code><br><code>expected_calibration_error(target=column1)</code></p> |
log_loss(target) | <p>Log loss (binary cross entropy) between target and output. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | log_loss(target=Optional[Any]) | Number | <p><code>log_loss()</code><br><code>log_loss(target=column1)</code></p> |
calibrated_threshold(target) | <p>Optimal threshold value for a high TPR and a low FPR. Available for binary classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | calibrated_threshold(target=Optional[Any]) | Number | <p><code>calibrated_threshold()</code><br><code>calibrated_threshold(target=column1)</code></p> |
accuracy(target, threshold) | <p>Accuracy score between target and outputs. Available for multiclass classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | accuracy(target=Optional[Any], threshold=Optional[Number]) | Number | <p><code>accuracy()</code><br><code>accuracy(target=column1)</code><br><code>accuracy(threshold=0.5)</code><br><code>accuracy(target=column1, threshold=0.5)</code></p> |
log_loss(target) | <p>Log loss score between target and outputs. Available for multiclass classification model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | log_loss(target=Optional[Any]) | Number | <p><code>log_loss()</code><br><code>log_loss(target=column1)</code></p> |
r2(target) | <p>R-squared score between target and output. Available for regression model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | r2(target=Optional[Any]) | Number | <p><code>r2()</code><br><code>r2(target=column1)</code></p> |
mse(target) | <p>Mean squared error between target and output. Available for regression model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | mse(target=Optional[Any]) | Number | <p><code>mse()</code><br><code>mse(target=column1)</code></p> |
mae(target) | <p>Mean absolute error between target and output. Available for regression model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | mae(target=Optional[Any]) | Number | <p><code>mae()</code><br><code>mae(target=column1)</code></p> |
mape(target) | <p>Mean absolute percentage error between target and output. Available for regression model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | mape(target=Optional[Any]) | Number | <p><code>mape()</code><br><code>mape(target=column1)</code></p> |
wmape(target) | <p>Weighted mean absolute percentage error between target and output. Available for regression model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | wmape(target=Optional[Any]) | Number | <p><code>wmape()</code><br><code>wmape(target=column1)</code></p> |
map(target) | <p>Mean average precision score. Available for ranking model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | map(target=Optional[Any]) | Number | <p><code>map()</code><br><code>map(target=column1)</code></p> |
ndcg_mean(target) | <p>Mean normalized discounted cumulative gain score. Available for ranking model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | ndcg_mean(target=Optional[Any]) | Number | <p><code>ndcg_mean()</code><br><code>ndcg_mean(target=column1)</code></p> |
query_count(target) | <p>Count of ranking queries. Available for ranking model tasks.<br>If <code>target</code> is specified, it will be used in place of the default target column.</p> | query_count(target=Optional[Any]) | Number | <p><code>query_count()</code><br><code>query_count(target=column1)</code></p> |
gini(actual, predicted) | Gini coefficient derived from the Lorenz curve. Measures how well a model’s predicted scores rank actual values. Available for ML custom metrics (all model task types, including regression). Both actual and predicted are required keyword arguments of type Number. To compute the normalized Gini coefficient, divide by the ideal Gini: gini(actual=Target, predicted=Score) / gini(actual=Target, predicted=Target). For binary classification, the normalized Gini can also be derived from AUC: 2 * auroc() - 1. | gini(actual=Number, predicted=Number) | Number | gini(actual=Target, predicted=Score) |