ValidMind for validation 4 — Finalize testing and reporting
Learn how to use ValidMind for your end-to-end validation process with our series of four introductory notebooks. In this last notebook, finalize the compliance assessment process and have a complete validation report ready for review.
This notebook will walk you through how to supplement ValidMind tests with your own custom tests and include them as additional evidence in your validation report. A custom test is any function that takes a set of inputs and parameters as arguments and returns one or more outputs:
The function can be as simple or as complex as you need it to be — it can use external libraries, make API calls, or do anything else that you can do in Python.
The only requirement is that the function signature and return values can be "understood" and handled by the ValidMind Library. As such, custom tests offer added flexibility by extending the default tests provided by ValidMind, enabling you to document any type of record (model) or use case.
For a more in-depth introduction to custom tests, refer to our Implement custom tests notebook.
Learn by doing
Our course tailor-made for validators new to ValidMind combines this series of notebooks with more a more in-depth introduction to the ValidMind Platform — Validator Fundamentals
Prerequisites
In order to finalize validation and reporting, you'll need to first have:
Need help with the above steps?
Refer to the first three notebooks in this series:
# Make sure the ValidMind Library is installed%pip install -q validmind# Load your model identifier credentials from an `.env` file%load_ext dotenv%dotenv .env# Or replace with your code snippetimport validmind as vmvm.init(# api_host="...",# api_key="...",# api_secret="...",# model="...", document="validation-report",)
Note: you may need to restart the kernel to use updated packages.
2026-11-20 23:09:11,642 - INFO(validmind.api_client): 🎉 Connected to ValidMind!
📊 Model: [ValidMind Academy] Model validation (ID: cmalguc9y02ok199q2db381ib)
📁 Document Type: validation_report
Import the sample dataset
Next, we'll load in the same sample Bank Customer Churn Prediction dataset used to develop the champion that we will independently preprocess:
# Load the sample datasetfrom validmind.datasets.classification import customer_churn as demo_datasetprint(f"Loaded demo dataset with: \n\n\t• Target column: '{demo_dataset.target_column}' \n\t• Class labels: {demo_dataset.class_labels}")raw_df = demo_dataset.load_data()
Loaded demo dataset with:
• Target column: 'Exited'
• Class labels: {'0': 'Did not exit', '1': 'Exited'}
# Initialize the raw dataset for use in ValidMind testsvm_raw_dataset = vm.init_dataset( dataset=raw_df, input_id="raw_dataset", target_column="Exited",)
import pandas as pdraw_copy_df = raw_df.sample(frac=1) # Create a copy of the raw dataset# Create a balanced dataset with the same number of exited and not exited customersexited_df = raw_copy_df.loc[raw_copy_df["Exited"] ==1]not_exited_df = raw_copy_df.loc[raw_copy_df["Exited"] ==0].sample(n=exited_df.shape[0])balanced_raw_df = pd.concat([exited_df, not_exited_df])balanced_raw_df = balanced_raw_df.sample(frac=1, random_state=42)
Let’s also quickly remove highly correlated features from the dataset using the output from a ValidMind test:
# Register new data and now 'balanced_raw_dataset' is the new dataset object of interestvm_balanced_raw_dataset = vm.init_dataset( dataset=balanced_raw_df, input_id="balanced_raw_dataset", target_column="Exited",)
# Run HighPearsonCorrelation test with our balanced dataset as input and return a result objectcorr_result = vm.tests.run_test( test_id="validmind.data_validation.HighPearsonCorrelation", params={"max_threshold": 0.3}, inputs={"dataset": vm_balanced_raw_dataset},)
❌ High Pearson Correlation
The High Pearson Correlation test evaluates pairwise linear relationships among features to identify potentially redundant or highly correlated variable pairs. The results table lists the strongest observed correlations, together with their Pearson coefficients and pass/fail status against the configured absolute correlation threshold of 0.3. Among the top reported pairs, coefficients range from -0.2033 to 0.3432, with one pair exceeding the threshold and all remaining pairs recorded as passing.
Key insights:
Single threshold breach observed: The pair (Age, Exited) has a Pearson correlation coefficient of 0.3432, which exceeds the configured threshold of 0.3 and is the only entry marked Fail in the reported results.
Remaining reported correlations are modest: All other listed feature pairs have absolute correlation values below 0.21, including (IsActiveMember, Exited) at -0.2033 and (Balance, NumOfProducts) at -0.1819, and are marked Pass.
Top reported relationships are concentrated near zero: Beyond the highest-ranked entries, the remaining reported coefficients are small in magnitude, including (Balance, Exited) at 0.1367, (NumOfProducts, Exited) at -0.0584, and several additional pairs between approximately -0.0450 and 0.0424.
Both positive and negative associations appear: The reported correlations include positive values such as (Age, Exited) at 0.3432 and (Balance, Exited) at 0.1367, as well as negative values such as (IsActiveMember, Exited) at -0.2033 and (Balance, NumOfProducts) at -0.1819.
The reported correlation structure is limited in scope, with one pair exceeding the configured threshold and the rest of the listed relationships remaining below it. The most prominent observed association is between Age and Exited, while the remaining top correlations are comparatively weak in magnitude. Overall, the table shows a largely low-correlation pattern among the reported top feature pairs, with a single flagged exception under the test criterion.
Parameters:
{
"max_threshold": 0.3
}
Tables
Columns
Coefficient
Pass/Fail
(Age, Exited)
0.3432
Fail
(IsActiveMember, Exited)
-0.2033
Pass
(Balance, NumOfProducts)
-0.1819
Pass
(Balance, Exited)
0.1367
Pass
(NumOfProducts, Exited)
-0.0584
Pass
(HasCrCard, IsActiveMember)
-0.0450
Pass
(Age, Balance)
0.0424
Pass
(Age, NumOfProducts)
-0.0421
Pass
(CreditScore, EstimatedSalary)
-0.0401
Pass
(CreditScore, IsActiveMember)
0.0394
Pass
# From result object, extract table from `corr_result.tables`features_df = corr_result.tables[0].datafeatures_df
Columns
Coefficient
Pass/Fail
0
(Age, Exited)
0.3432
Fail
1
(IsActiveMember, Exited)
-0.2033
Pass
2
(Balance, NumOfProducts)
-0.1819
Pass
3
(Balance, Exited)
0.1367
Pass
4
(NumOfProducts, Exited)
-0.0584
Pass
5
(HasCrCard, IsActiveMember)
-0.0450
Pass
6
(Age, Balance)
0.0424
Pass
7
(Age, NumOfProducts)
-0.0421
Pass
8
(CreditScore, EstimatedSalary)
-0.0401
Pass
9
(CreditScore, IsActiveMember)
0.0394
Pass
# Extract list of features that failed the testhigh_correlation_features = features_df[features_df["Pass/Fail"] =="Fail"]["Columns"].tolist()high_correlation_features
['(Age, Exited)']
# Extract feature names from the list of stringshigh_correlation_features = [feature.split(",")[0].strip("()") for feature in high_correlation_features]high_correlation_features
['Age']
# Remove the highly correlated features from the datasetbalanced_raw_no_age_df = balanced_raw_df.drop(columns=high_correlation_features)# Re-initialize the dataset objectvm_raw_dataset_preprocessed = vm.init_dataset( dataset=balanced_raw_no_age_df, input_id="raw_dataset_preprocessed", target_column="Exited",)
# Re-run the test with the reduced feature setcorr_result = vm.tests.run_test( test_id="validmind.data_validation.HighPearsonCorrelation", params={"max_threshold": 0.3}, inputs={"dataset": vm_raw_dataset_preprocessed},)
✅ High Pearson Correlation
The High Pearson Correlation test evaluates pairwise linear relationships between features to identify potentially redundant variables or multicollinearity. The result table lists the top reported feature pairs, their Pearson correlation coefficients, and a Pass/Fail assessment using a maximum threshold of 0.3 on the absolute correlation value. In this run, all reported correlations are below the threshold and are marked as Pass. The observed coefficients range from -0.2033 to 0.1367 across the listed feature pairs.
Key insights:
No pair exceeds threshold: All 10 reported feature pairs are marked Pass, with absolute correlation values remaining below the configured 0.3 threshold.
Largest correlation is modest: The highest absolute correlation is between IsActiveMember and Exited at -0.2033, which remains below the threshold.
Reported relationships are weak: The remaining listed coefficients are closer to zero, including -0.1819 for Balance and NumOfProducts and 0.1367 for Balance and Exited, while all other reported pairs fall within approximately -0.06 to 0.04.
Both positive and negative associations appear: The reported pairs include both negative and positive coefficients, indicating mixed relationship directions without any strong linear dependency in the listed results.
The reported correlation structure shows weak pairwise linear relationships among the top listed feature pairs. No reported feature pair breaches the 0.3 absolute-correlation threshold, and the largest observed coefficient remains modest in magnitude. Collectively, these results indicate that the listed features do not exhibit high pairwise Pearson correlation under this test configuration.
Parameters:
{
"max_threshold": 0.3
}
Tables
Columns
Coefficient
Pass/Fail
(IsActiveMember, Exited)
-0.2033
Pass
(Balance, NumOfProducts)
-0.1819
Pass
(Balance, Exited)
0.1367
Pass
(NumOfProducts, Exited)
-0.0584
Pass
(HasCrCard, IsActiveMember)
-0.0450
Pass
(CreditScore, EstimatedSalary)
-0.0401
Pass
(CreditScore, IsActiveMember)
0.0394
Pass
(Tenure, IsActiveMember)
-0.0392
Pass
(CreditScore, Exited)
-0.0376
Pass
(NumOfProducts, IsActiveMember)
0.0337
Pass
Split the preprocessed dataset
With our raw dataset rebalanced with highly correlated features removed, let's now spilt our dataset into train and test in preparation for model evaluation testing:
# Encode categorical features in the datasetbalanced_raw_no_age_df = pd.get_dummies( balanced_raw_no_age_df, columns=["Geography", "Gender"], drop_first=True)balanced_raw_no_age_df.head()
CreditScore
Tenure
Balance
NumOfProducts
HasCrCard
IsActiveMember
EstimatedSalary
Exited
Geography_Germany
Geography_Spain
Gender_Male
1873
686
5
154846.24
2
1
1
151903.60
0
True
False
False
4970
608
1
102772.67
2
1
0
70705.58
0
True
False
True
3264
683
0
148863.17
1
1
1
163911.32
0
False
True
True
4683
443
3
138547.97
1
1
1
70196.23
1
False
False
False
417
698
4
101238.24
2
0
1
177815.87
1
False
False
True
from sklearn.model_selection import train_test_split# Split the dataset into train and testtrain_df, test_df = train_test_split(balanced_raw_no_age_df, test_size=0.20)X_train = train_df.drop("Exited", axis=1)y_train = train_df["Exited"]X_test = test_df.drop("Exited", axis=1)y_test = test_df["Exited"]
With our raw dataset assessed and preprocessed, let's go ahead and import the champion submitted by the development team in the format of a .pkl file: lr_model_champion.pkl
# Import the champion modelimport pickle as pklwithopen("lr_model_champion.pkl", "rb") as f: log_reg = pkl.load(f)
/opt/hostedtoolcache/Python/3.11.18/x64/lib/python3.11/site-packages/sklearn/base.py:442: InconsistentVersionWarning: Trying to unpickle estimator LogisticRegression from version 1.3.2 when using version 1.7.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/model_persistence.html#security-maintainability-limitations
warnings.warn(
Train potential challenger model
We'll also train our random forest classification challenger to see how it compares:
# Import the Random Forest Classification modelfrom sklearn.ensemble import RandomForestClassifier# Create the model instance with 50 decision treesrf_model = RandomForestClassifier( n_estimators=50, random_state=42,)# Train the modelrf_model.fit(X_train, y_train)
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.
Parameters
n_estimators
50
criterion
'gini'
max_depth
None
min_samples_split
2
min_samples_leaf
1
min_weight_fraction_leaf
0.0
max_features
'sqrt'
max_leaf_nodes
None
min_impurity_decrease
0.0
bootstrap
True
oob_score
False
n_jobs
None
random_state
42
verbose
0
warm_start
False
class_weight
None
ccp_alpha
0.0
max_samples
None
monotonic_cst
None
Initialize the ValidMind models
In addition to the initialized datasets, you'll also need to initialize a ValidMind model object (vm_model) that can be passed to other functions for analysis and tests on the data for each of our two models:
# Initialize the champion logistic regression modelvm_log_model = vm.init_model( log_reg, input_id="log_model_champion",)# Initialize the challenger random forest classification modelvm_rf_model = vm.init_model( rf_model, input_id="rf_model",)
# Assign predictions to Champion — Logistic regression modelvm_train_ds.assign_predictions(model=vm_log_model)vm_test_ds.assign_predictions(model=vm_log_model)# Assign predictions to Challenger — Random forest classification modelvm_train_ds.assign_predictions(model=vm_rf_model)vm_test_ds.assign_predictions(model=vm_rf_model)
2026-11-20 23:09:25,318 - INFO(validmind.vm_models.dataset.utils): Running predict_proba()... This may take a while
2026-11-20 23:09:25,319 - INFO(validmind.vm_models.dataset.utils): Done running predict_proba()
2026-11-20 23:09:25,320 - INFO(validmind.vm_models.dataset.utils): Running predict()... This may take a while
2026-11-20 23:09:25,322 - INFO(validmind.vm_models.dataset.utils): Done running predict()
2026-11-20 23:09:25,323 - INFO(validmind.vm_models.dataset.utils): Running predict_proba()... This may take a while
2026-11-20 23:09:25,325 - INFO(validmind.vm_models.dataset.utils): Done running predict_proba()
2026-11-20 23:09:25,325 - INFO(validmind.vm_models.dataset.utils): Running predict()... This may take a while
2026-11-20 23:09:25,326 - INFO(validmind.vm_models.dataset.utils): Done running predict()
2026-11-20 23:09:25,328 - INFO(validmind.vm_models.dataset.utils): Running predict_proba()... This may take a while
2026-11-20 23:09:25,342 - INFO(validmind.vm_models.dataset.utils): Done running predict_proba()
2026-11-20 23:09:25,343 - INFO(validmind.vm_models.dataset.utils): Running predict()... This may take a while
2026-11-20 23:09:25,357 - INFO(validmind.vm_models.dataset.utils): Done running predict()
2026-11-20 23:09:25,359 - INFO(validmind.vm_models.dataset.utils): Running predict_proba()... This may take a while
2026-11-20 23:09:25,364 - INFO(validmind.vm_models.dataset.utils): Done running predict_proba()
2026-11-20 23:09:25,365 - INFO(validmind.vm_models.dataset.utils): Running predict()... This may take a while
2026-11-20 23:09:25,370 - INFO(validmind.vm_models.dataset.utils): Done running predict()
Implementing custom tests
Thanks to the documentation (Learn more:ValidMind for development), we know that the development team implemented a custom test to further evaluate the performance of the champion.
In a usual validation situation, you would load a saved custom test provided by the development team. In the following section, we'll have you implement the same custom test and make it available for reuse, to familiarize you with the processes.
Let's implement the same custom inline test that calculates the confusion matrix for a binary classification model that the development team used in their performance evaluations.
An inline test refers to a test written and executed within the same environment as the code being tested — in this case, right in this Jupyter Notebook — without requiring a separate test file or framework.
You'll note that the custom test function is just a regular Python function that can include and require any Python library as you see fit.
Create a confusion matrix plot
Let's first create a confusion matrix plot using the confusion_matrix function from the sklearn.metrics module:
import matplotlib.pyplot as pltfrom sklearn import metrics# Get the predicted classesy_pred = log_reg.predict(vm_test_ds.x)confusion_matrix = metrics.confusion_matrix(y_test, y_pred)cm_display = metrics.ConfusionMatrixDisplay( confusion_matrix=confusion_matrix, display_labels=[False, True])cm_display.plot()
Next, create a @vm.test wrapper that will allow you to create a reusable test. Note the following changes in the code below:
The function confusion_matrix takes two arguments dataset and model. This is a VMDataset and VMModel object respectively.
VMDataset objects allow you to access the dataset's true (target) values by accessing the .y attribute.
VMDataset objects allow you to access the predictions for a given record (model) by accessing the .y_pred() method.
The function docstring provides a description of what the test does. This will be displayed along with the result in this notebook as well as in the ValidMind Platform.
The function body calculates the confusion matrix using the sklearn.metrics.confusion_matrix function as we just did above.
The function then returns the ConfusionMatrixDisplay.figure_ object — this is important as the ValidMind Library expects the output of the custom test to be a plot or a table.
The @vm.test decorator is doing the work of creating a wrapper around the function that will allow it to be run by the ValidMind Library. It also registers the test so it can be found by the ID my_custom_tests.ConfusionMatrix.
@vm.test("my_custom_tests.ConfusionMatrix")def confusion_matrix(dataset, model):"""The confusion matrix is a table that is often used to describe the performance of a classification model on a set of data for which the true values are known. The confusion matrix is a 2x2 table that contains 4 values: - True Positive (TP): the number of correct positive predictions - True Negative (TN): the number of correct negative predictions - False Positive (FP): the number of incorrect positive predictions - False Negative (FN): the number of incorrect negative predictions The confusion matrix can be used to assess the holistic performance of a classification model by showing the accuracy, precision, recall, and F1 score of the model on a single figure. """ y_true = dataset.y y_pred = dataset.y_pred(model=model) confusion_matrix = metrics.confusion_matrix(y_true, y_pred) cm_display = metrics.ConfusionMatrixDisplay( confusion_matrix=confusion_matrix, display_labels=[False, True] ) cm_display.plot() plt.close() # close the plot to avoid displaying itreturn cm_display.figure_ # return the figure object itself
You can now run the newly created custom test on both the training and test datasets for both models using the run_test() function:
The Confusion Matrix test evaluates classification outcomes by comparing predicted labels with observed labels and reporting the counts of true positives, true negatives, false positives, and false negatives. The results are shown separately for train_dataset_final and test_dataset_final as 2x2 matrices with true labels on the rows and predicted labels on the columns. For the training dataset, the matrix contains 857 true negatives, 451 false positives, 457 false negatives, and 820 true positives. For the test dataset, the matrix contains 201 true negatives, 107 false positives, 150 false negatives, and 189 true positives.
Key insights:
Correct classifications exceed errors: In both datasets, the diagonal cells are larger than the off-diagonal cells. Training results show 1,677 correct classifications versus 908 errors, while test results show 390 correct classifications versus 257 errors.
False positives and false negatives are balanced in training: On train_dataset_final, false positives (451) and false negatives (457) are nearly equal, indicating similar error frequency across the two misclassification types.
Test errors skew toward false negatives: On test_dataset_final, false negatives (150) exceed false positives (107). This indicates more observed positive cases were classified as negative than observed negative cases classified as positive.
Class support is similar across outcomes: In the training dataset, actual negatives total 1,308 and actual positives total 1,277; in the test dataset, actual negatives total 308 and actual positives total 339. The matrices therefore reflect relatively similar class counts across the two observed classes.
The confusion matrices show that the model produces more correct than incorrect classifications on both the training and test datasets, with the largest counts concentrated in the true negative and true positive cells. Training misclassifications are nearly evenly split between false positives and false negatives, while the test dataset shows a larger false negative count than false positive count. Across both datasets, the observed class totals are relatively similar, allowing the matrix counts to be interpreted without a strong class imbalance evident in the displayed results.
Figures
2026-11-20 23:09:32,252 - INFO(validmind.vm_models.result.result): Test driven block with result_id my_custom_tests.ConfusionMatrix:champion does not exist in model's document
The Confusion Matrix test evaluates classification performance by comparing predicted labels against observed labels across true positives, true negatives, false positives, and false negatives. The results are shown separately for the training dataset and the test dataset in 2x2 matrices with true labels on the vertical axis and predicted labels on the horizontal axis. For the training dataset, the matrix contains 1,308 true negatives, 1,277 true positives, and zero false positives and false negatives. For the test dataset, the matrix contains 214 true negatives, 230 true positives, 94 false positives, and 109 false negatives.
Key insights:
Perfect separation on training data: The training confusion matrix shows 1,308 true negatives and 1,277 true positives, with both false positives and false negatives equal to 0. All training observations are classified correctly.
Material errors on test data: The test confusion matrix includes 94 false positives and 109 false negatives alongside 214 true negatives and 230 true positives. Misclassifications are present in both classes rather than being concentrated in only one error type.
Test performance is more balanced than one-sided: On the test dataset, false negatives (109) are slightly higher than false positives (94). This indicates a modest tilt toward missed positive cases relative to incorrect positive assignments.
Class representation is relatively similar across outcomes: In the test confusion matrix, the correctly classified counts for the two classes are of similar magnitude, with 214 true negatives and 230 true positives. Error counts are also of similar scale across false positives and false negatives.
The confusion matrices show a sharp contrast between the training and test datasets. Training results indicate complete classification accuracy, while test results show non-zero errors in both directions, with false negatives slightly exceeding false positives. Taken together, the results indicate that observed classification performance is substantially stronger on the training sample than on the held-out test sample.
Figures
2026-11-20 23:09:39,853 - INFO(validmind.vm_models.result.result): Test driven block with result_id my_custom_tests.ConfusionMatrix:challenger does not exist in model's document
Note the output returned indicating that a test-driven block doesn't currently exist in your documentation for some test IDs.
That's expected, as when we run validations tests the results logged need to be manually added to your report as part of your compliance assessment process within the ValidMind Platform.
Add parameters to custom tests
Custom tests can take parameters just like any other function. To demonstrate, let's modify the confusion_matrix function to take an additional parameter normalize that will allow you to normalize the confusion matrix:
@vm.test("my_custom_tests.ConfusionMatrix")def confusion_matrix(dataset, model, normalize=False):"""The confusion matrix is a table that is often used to describe the performance of a classification model on a set of data for which the true values are known. The confusion matrix is a 2x2 table that contains 4 values: - True Positive (TP): the number of correct positive predictions - True Negative (TN): the number of correct negative predictions - False Positive (FP): the number of incorrect positive predictions - False Negative (FN): the number of incorrect negative predictions The confusion matrix can be used to assess the holistic performance of a classification model by showing the accuracy, precision, recall, and F1 score of the model on a single figure. """ y_true = dataset.y y_pred = dataset.y_pred(model=model)if normalize: confusion_matrix = metrics.confusion_matrix(y_true, y_pred, normalize="all")else: confusion_matrix = metrics.confusion_matrix(y_true, y_pred) cm_display = metrics.ConfusionMatrixDisplay( confusion_matrix=confusion_matrix, display_labels=[False, True] ) cm_display.plot() plt.close() # close the plot to avoid displaying itreturn cm_display.figure_ # return the figure object itself
Pass parameters to custom tests
You can pass parameters to custom tests by providing a dictionary of parameters to the run_test() function.
The parameters will override any default parameters set in the custom test definition. Note that dataset and model are still passed as inputs.
Since these are VMDataset or VMModel inputs, they have a special meaning.
Re-running and logging the custom confusion matrix with normalize=True for both models and our testing dataset looks like this:
# Champion with test dataset and normalize=Truevm.tests.run_test( test_id="my_custom_tests.ConfusionMatrix:test_normalized_champion", input_grid={"dataset": [vm_test_ds],"model" : [vm_log_model] }, params={"normalize": True}).log()
Confusion Matrix Test Normalized Champion
The ConfusionMatrix test evaluates classification outcomes by comparing predicted labels with true labels, and this result presents the normalized confusion matrix for log_model_champion on test_dataset_final. The figure shows the proportion of observations in each of the four confusion matrix cells rather than raw counts, with values of 0.31 for true negatives, 0.17 for false positives, 0.23 for false negatives, and 0.29 for true positives. Together, these values describe how predictions are distributed across correct and incorrect classifications in the test sample.
Key insights:
Correct classifications are slightly predominant: The diagonal cells sum to 0.60, comprising 0.31 true negatives and 0.29 true positives, while the off-diagonal error cells sum to 0.40.
True negatives are the largest cell: The highest single proportion in the matrix is the true negative cell at 0.31, narrowly above the true positive cell at 0.29.
False negatives exceed false positives: Misclassification is more concentrated in false negatives at 0.23 than in false positives at 0.17, a difference of 0.06.
Prediction outcomes are relatively balanced across classes: The two correct outcome cells are close in magnitude, and both error cells remain below the larger diagonal cells, indicating no single cell dominates the matrix.
The normalized confusion matrix shows that correct classifications account for a larger share of outcomes than misclassifications, with the strongest contributions coming from true negatives and true positives. Errors are present in both directions, with false negatives occurring more frequently than false positives. Overall, the result indicates a moderately balanced classification pattern across positive and negative classes, with a modest skew toward correct negative predictions.
Parameters:
{
"normalize": true
}
Figures
2026-11-20 23:09:46,177 - INFO(validmind.vm_models.result.result): Test driven block with result_id my_custom_tests.ConfusionMatrix:test_normalized_champion does not exist in model's document
# Challenger with test dataset and normalize=Truevm.tests.run_test( test_id="my_custom_tests.ConfusionMatrix:test_normalized_challenger", input_grid={"dataset": [vm_test_ds],"model" : [vm_rf_model] }, params={"normalize": True}).log()
Confusion Matrix Test Normalized Challenger
The ConfusionMatrix:test_normalized_challenger test evaluates classification outcomes by comparing predicted labels against true labels in a normalized 2x2 confusion matrix. The displayed matrix is normalized (normalize=True), so each cell represents the proportion of total observations assigned to that outcome category. The results show 0.33 for true negatives, 0.15 for false positives, 0.17 for false negatives, and 0.36 for true positives, providing a compact view of correct and incorrect classifications across both classes.
Key insights:
Correct classifications dominate: The diagonal cells sum to 0.69, comprising 0.33 true negatives and 0.36 true positives. This indicates that most observations fall into correctly classified outcomes.
True positives slightly exceed true negatives: The true positive cell is 0.36 versus 0.33 for true negatives. Correct positive classifications therefore make up a slightly larger share of observations than correct negative classifications.
False negatives exceed false positives: Misclassifications are split between 0.17 false negatives and 0.15 false positives. The model therefore misses positive cases slightly more often than it incorrectly assigns positive labels to negative cases.
Error distribution is relatively balanced: The two off-diagonal cells are close in magnitude, differing by 0.02. This indicates that classification errors are not concentrated heavily in only one error type.
The normalized confusion matrix shows that correct predictions account for the majority of observations, with slightly more correct positive than correct negative classifications. Misclassifications are lower than correct classifications overall and are relatively evenly distributed, though false negatives occur marginally more often than false positives. Collectively, the result reflects a balanced classification pattern with moderate asymmetry between the two error types.
Parameters:
{
"normalize": true
}
Figures
2026-11-20 23:09:53,001 - INFO(validmind.vm_models.result.result): Test driven block with result_id my_custom_tests.ConfusionMatrix:test_normalized_challenger does not exist in model's document
Use external test providers
Sometimes you may want to reuse the same set of custom tests across multiple records (models) and share them with others in your organization, like the development team would have done with you in this example workflow featured in this series of notebooks. In this case, you can create an external custom test provider that will allow you to load custom tests from a local folder or a Git repository.
In this section you will learn how to declare a local filesystem test provider that allows loading tests from a local folder following these high level steps:
Create a folder of custom tests from existing inline tests (tests that exist in your active Jupyter Notebook)
Let's start by creating a new folder that will contain reusable custom tests from your existing inline tests.
The following code snippet will create a new my_tests directory in the current working directory if it doesn't exist:
tests_folder ="my_tests"import os# create tests folderos.makedirs(tests_folder, exist_ok=True)# remove existing testsfor f in os.listdir(tests_folder):# remove files and pycacheif f.endswith(".py") or f =="__pycache__": os.system(f"rm -rf {tests_folder}/{f}")
After running the command above, confirm that a new my_tests directory was created successfully. For example:
~/notebooks/tutorials/validation/my_tests/
Save an inline test
The @vm.test decorator we used in Implement a custom inline test above to register one-off custom tests also includes a convenience method on the function object that allows you to simply call <func_name>.save() to save the test to a Python file at a specified path.
While save() will get you started by creating the file and saving the function code with the correct name, it won't automatically include any imports, or other functions or variables, outside of the functions that are needed for the test to run. To solve this, pass in an optional imports argument ensuring necessary imports are added to the file.
The confusion_matrix test requires the following additional imports:
import matplotlib.pyplot as pltfrom sklearn import metrics
Let's pass these imports to the save() method to ensure they are included in the file with the following command:
confusion_matrix.save(# Save it to the custom tests folder we created tests_folder, imports=["import matplotlib.pyplot as plt", "from sklearn import metrics"],)
2026-11-20 23:09:53,445 - INFO(validmind.tests.decorator): Saved to /home/runner/work/documentation/documentation/site/notebooks/EXECUTED/validation/my_tests/ConfusionMatrix.py!Be sure to add any necessary imports to the top of the file.
2026-11-20 23:09:53,445 - INFO(validmind.tests.decorator): This metric can be run with the ID: <test_provider_namespace>.ConfusionMatrix
# Saved from __main__.confusion_matrix
# Original Test ID: my_custom_tests.ConfusionMatrix
# New Test ID: <test_provider_namespace>.ConfusionMatrix
Now that your my_tests folder has a sample custom test, let's initialize a test provider that will tell the ValidMind Library where to find your custom tests:
ValidMind offers out-of-the-box test providers for local tests (tests in a folder) or a Github provider for tests in a Github repository.
You can also create your own test provider by creating a class that has a load_test method that takes a test ID and returns the test function matching that ID.
For most use cases, using a LocalTestProvider that allows you to load custom tests from a designated directory should be sufficient.
The most important attribute for a test provider is its namespace. This is a string that will be used to prefix test IDs in documentation. This allows you to have multiple test providers with tests that can even share the same ID, but are distinguished by their namespace.
Let's go ahead and load the custom tests from our my_tests directory:
from validmind.tests import LocalTestProvider# initialize the test provider with the tests folder we created earliermy_test_provider = LocalTestProvider(tests_folder)vm.tests.register_test_provider( namespace="my_test_provider", test_provider=my_test_provider,)# `my_test_provider.load_test()` will be called for any test ID that starts with `my_test_provider`# e.g. `my_test_provider.ConfusionMatrix` will look for a function named `ConfusionMatrix` in `my_tests/ConfusionMatrix.py` file
Run test provider tests
Now that we've set up the test provider, we can run any test that's located in the tests folder by using the run_test() method as with any other test:
For tests that reside in a test provider directory, the test ID will be the namespace specified when registering the provider, followed by the path to the test file relative to the tests folder.
For example, the Confusion Matrix test we created earlier will have the test ID my_test_provider.ConfusionMatrix. You could organize the tests in subfolders, say classification and regression, and the test ID for the Confusion Matrix test would then be my_test_provider.classification.ConfusionMatrix.
Let's go ahead and re-run the confusion matrix test with our testing dataset for our two models by using the test ID my_test_provider.ConfusionMatrix. This should load the test from the test provider and run it as before.
# Champion with test dataset and test provider custom testvm.tests.run_test( test_id="my_test_provider.ConfusionMatrix:champion", input_grid={"dataset": [vm_test_ds],"model" : [vm_log_model] }).log()
Confusion Matrix Champion
The Confusion Matrix test evaluates classification performance by comparing predicted labels with observed labels on the test dataset. The matrix displays counts for each prediction outcome across the two classes, with rows representing true labels and columns representing predicted labels. In this result, the four cell counts are 201 for true negatives, 107 for false positives, 150 for false negatives, and 189 for true positives. These values show how predictions are distributed between correct and incorrect classifications for both the positive and negative classes.
Key insights:
Correct predictions exceed errors: The matrix contains 201 true negatives and 189 true positives, compared with 107 false positives and 150 false negatives. Correct classifications total 390, while misclassifications total 257.
Negative class is identified more accurately: True negatives number 201 versus 107 false positives for observations with a true label of False. This indicates fewer errors within the negative class than within the positive class, where false negatives total 150 against 189 true positives.
False negatives exceed false positives: The model produces 150 false negatives compared with 107 false positives. Misclassification is therefore more concentrated in missed positive cases than in incorrect positive predictions.
The confusion matrix indicates that the model achieves more correct classifications than incorrect ones on the test dataset, with both true negative and true positive counts exceeding their corresponding error counts. Performance is stronger for observations with a true negative label than for observations with a true positive label, as reflected by the lower false positive count relative to the false negative count. Overall, the result shows a moderate level of classification error, with missed positive cases representing the larger source of error.
Figures
2026-11-20 23:09:59,284 - INFO(validmind.vm_models.result.result): Test driven block with result_id my_test_provider.ConfusionMatrix:champion does not exist in model's document
# Challenger with test dataset and test provider custom testvm.tests.run_test( test_id="my_test_provider.ConfusionMatrix:challenger", input_grid={"dataset": [vm_test_ds],"model" : [vm_rf_model] }).log()
Confusion Matrix Challenger
The Confusion Matrix test evaluates classification performance by comparing predicted labels against observed labels. The matrix for test_dataset_final and model rf_model reports counts across the four outcome categories in a 2x2 layout. The displayed counts are 214 for true negatives, 94 for false positives, 109 for false negatives, and 230 for true positives, providing a direct view of correct and incorrect classifications by class.
Key insights:
Correct predictions exceed errors: The diagonal cells contain 214 true negatives and 230 true positives, while the off-diagonal cells contain 94 false positives and 109 false negatives. This indicates that correct classifications outnumber misclassifications in both classes combined.
Positive-class hits are slightly higher: True positives total 230 compared with 214 true negatives. The model therefore records a slightly larger number of correct positive predictions than correct negative predictions on this test set.
False negatives exceed false positives: The model produces 109 false negatives versus 94 false positives. Misclassification is therefore somewhat more concentrated in missed positive cases than in incorrect positive assignments.
Observed classes are similarly represented: Summing across rows gives 308 observed negatives and 339 observed positives. The test sample shown in the matrix contains both classes in comparable volumes, with a modestly higher count for the positive class.
The confusion matrix shows that the challenger model achieves more correct than incorrect classifications overall, with both true positive and true negative counts exceeding their corresponding error counts. Performance is relatively balanced across classes, although false negatives are somewhat more frequent than false positives. The positive class is also slightly more prevalent in the observed sample and has the highest correct-count cell in the matrix.
Figures
2026-11-20 23:10:06,728 - INFO(validmind.vm_models.result.result): Test driven block with result_id my_test_provider.ConfusionMatrix:challenger does not exist in model's document
Verify test runs
Our final task is to verify that all the tests provided by the development team were run and reported accurately. Note the appended result_ids to delineate which dataset we ran the test with for the relevant tests.
Here, we'll specify all the tests we'd like to independently rerun in a dictionary called test_config. Note here that inputs and input_grid expect the input_id of the dataset or model as the value rather than the variable name we specified:
for t in test_config:print(t)try:# Check if test has input_gridif'input_grid'in test_config[t]:# For tests with input_grid, pass the input_grid configurationif'params'in test_config[t]: vm.tests.run_test(t, input_grid=test_config[t]['input_grid'], params=test_config[t]['params']).log()else: vm.tests.run_test(t, input_grid=test_config[t]['input_grid']).log()else:# Original logic for regular inputsif'params'in test_config[t]: vm.tests.run_test(t, inputs=test_config[t]['inputs'], params=test_config[t]['params']).log()else: vm.tests.run_test(t, inputs=test_config[t]['inputs']).log()exceptExceptionas e:print(f"Error running test {t}: {str(e)}")
The Dataset Description test evaluates the structure, completeness, and value cardinality of each column in the raw dataset. The results summarize 11 columns across numeric and categorical data types, with reported counts, missing-value rates, and distinct-value counts for each field. All columns contain 8,000 observations, and the table shows variation in feature cardinality ranging from binary categorical fields to fully unique numeric values.
Key insights:
No missing values observed: All 11 columns have 8,000 populated records and 0 missing values, corresponding to 0.0% missingness across the dataset.
Mixed feature cardinality profile: Distinct counts range from 2 for Gender, HasCrCard, IsActiveMember, and Exited to 8,000 for EstimatedSalary. This indicates the dataset includes both low-cardinality categorical variables and highly granular numeric variables.
EstimatedSalary is fully unique: EstimatedSalary has 8,000 distinct values out of 8,000 records, yielding a distinct proportion of 1.0, which is the highest among all fields.
Balance also shows high granularity: Balance contains 5,088 distinct values, representing 63.6% of records, making it the second most granular column in the dataset.
Categorical variables have very limited levels: Geography has 3 distinct values, while Gender, HasCrCard, IsActiveMember, and Exited each have 2 distinct values. These fields exhibit very low distinct proportions relative to dataset size.
Several numeric fields are discretized: Tenure has 11 distinct values, NumOfProducts has 4, and Age has 69, indicating that not all numeric fields are continuous at the observed sample level.
The dataset description indicates complete record coverage across all reported fields, with no missingness in the raw data. The variable set combines low-cardinality categorical features with both moderately and highly granular numeric features, including one fully unique field and one additional high-cardinality balance field. Overall, the result shows a structurally complete dataset with heterogeneous feature cardinality across the 11 columns.
Tables
Dataset Description
Name
Type
Count
Missing
Missing %
Distinct
Distinct %
CreditScore
Numeric
8000.0
0
0.0
452
0.0565
Geography
Categorical
8000.0
0
0.0
3
0.0004
Gender
Categorical
8000.0
0
0.0
2
0.0002
Age
Numeric
8000.0
0
0.0
69
0.0086
Tenure
Numeric
8000.0
0
0.0
11
0.0014
Balance
Numeric
8000.0
0
0.0
5088
0.6360
NumOfProducts
Numeric
8000.0
0
0.0
4
0.0005
HasCrCard
Categorical
8000.0
0
0.0
2
0.0002
IsActiveMember
Categorical
8000.0
0
0.0
2
0.0002
EstimatedSalary
Numeric
8000.0
0
0.0
8000
1.0000
Exited
Categorical
8000.0
0
0.0
2
0.0002
2026-11-20 23:10:14,188 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.DatasetDescription:raw_data does not exist in model's document
The Descriptive Statistics test evaluates the distributional characteristics of numerical and categorical variables in the raw dataset. The results summarize central tendency, spread, range, and selected percentiles for eight numerical variables, alongside count, cardinality, and top-category concentration for two categorical variables. All reported variables have a count of 8,000 observations, and the categorical summary shows the relative concentration of observations across Geography and Gender.
Key insights:
Complete coverage across variables: Every numerical and categorical variable shows a count of 8,000, indicating that the summarized fields were populated across the full raw dataset in this test output.
Balance includes a zero-heavy lower distribution: Balance has a 25th percentile of 0.0 while the median is 97,264.0 and the mean is 76,434.0965. This indicates that at least one quarter of observations have zero balance, with the remaining distribution extending materially upward through the upper percentiles.
Balance shows the widest dispersion: Balance has a standard deviation of 62,612.2513 over a range from 0.0 to 250,898.0, making it the most dispersed numerical variable in absolute terms among the reported features.
EstimatedSalary is broadly distributed: EstimatedSalary spans from 12.0 to 199,992.0, with a mean of 99,790.188 and median of 99,505.0. The close alignment of mean and median indicates a broadly centered distribution around 100,000 within a wide overall range.
CreditScore and Age are centered near their medians: CreditScore has a mean of 650.1596 versus a median of 652.0, and Age has a mean of 38.9489 versus a median of 37.0. For both variables, the mean and median are relatively close compared with their full observed ranges.
Discrete product holdings are concentrated at low values: NumOfProducts has a median of 1.0, a 75th percentile of 2.0, and a maximum of 4.0. The distribution is concentrated in the lower product-count categories, with most observations at one or two products.
Categorical concentration is moderate: Geography contains 3 unique values, with France as the top category at 4,010 observations (50.12%). Gender contains 2 unique values, with Male as the top category at 4,396 observations (54.95%).
The descriptive statistics show a fully populated raw dataset with numerical variables spanning both continuous and discrete-valued distributions. The most pronounced distributional feature is Balance, where the zero-valued lower quartile and large dispersion distinguish it from the other variables. The categorical variables exhibit moderate concentration in their top categories, while several numerical fields, including CreditScore, Age, and EstimatedSalary, show central tendencies that are relatively close to their medians.
Tables
Numerical Variables
Name
Count
Mean
Std
Min
25%
50%
75%
90%
95%
Max
CreditScore
8000.0
650.1596
96.8462
350.0
583.0
652.0
717.0
778.0
813.0
850.0
Age
8000.0
38.9489
10.4590
18.0
32.0
37.0
44.0
53.0
60.0
92.0
Tenure
8000.0
5.0339
2.8853
0.0
3.0
5.0
8.0
9.0
9.0
10.0
Balance
8000.0
76434.0965
62612.2513
0.0
0.0
97264.0
128045.0
149545.0
162488.0
250898.0
NumOfProducts
8000.0
1.5325
0.5805
1.0
1.0
1.0
2.0
2.0
2.0
4.0
HasCrCard
8000.0
0.7026
0.4571
0.0
0.0
1.0
1.0
1.0
1.0
1.0
IsActiveMember
8000.0
0.5199
0.4996
0.0
0.0
1.0
1.0
1.0
1.0
1.0
EstimatedSalary
8000.0
99790.1880
57520.5089
12.0
50857.0
99505.0
149216.0
179486.0
189997.0
199992.0
Categorical Variables
Name
Count
Number of Unique Values
Top Value
Top Value Frequency
Top Value Frequency %
Geography
8000.0
3.0
France
4010.0
50.12
Gender
8000.0
2.0
Male
4396.0
54.95
2026-11-20 23:10:23,517 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.DescriptiveStatistics:raw_data does not exist in model's document
validmind.data_validation.MissingValues:raw_data
✅ Missing Values Raw Data
The Missing Values test evaluates dataset completeness by measuring the proportion of missing values in each feature against the configured 1% threshold. The results table reports the number and percentage of missing values for 11 raw data columns, along with a pass/fail outcome for each column. All listed features show 0 missing values and 0.0% missingness, and each column is marked as passing the test.
Key insights:
No missing values detected: All 11 columns record 0 missing values, corresponding to 0.0% missingness in every feature.
All features passed threshold: Every column is marked as Pass under the 1% missing-value threshold, with no feature exceeding the configured limit.
Completeness is uniform across variables: Missingness results are identical across predictor and target fields, including CreditScore, Geography, Gender, Age, Balance, EstimatedSalary, and Exited.
The test results show complete observed data coverage across all evaluated raw data fields under the applied missingness criterion. No column exhibits any measured missingness, and no threshold breaches are present in the reported dataset. Collectively, the results indicate a uniformly complete input table for this test run.
Parameters:
{
"min_percentage_threshold": 1
}
Tables
Column
Number of Missing Values
Percentage of Missing Values (%)
Pass/Fail
CreditScore
0
0.0
Pass
Geography
0
0.0
Pass
Gender
0
0.0
Pass
Age
0
0.0
Pass
Tenure
0
0.0
Pass
Balance
0
0.0
Pass
NumOfProducts
0
0.0
Pass
HasCrCard
0
0.0
Pass
IsActiveMember
0
0.0
Pass
EstimatedSalary
0
0.0
Pass
Exited
0
0.0
Pass
2026-11-20 23:10:27,873 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.MissingValues:raw_data does not exist in model's document
validmind.data_validation.ClassImbalance:raw_data
✅ Class Imbalance Raw Data
The Class Imbalance test evaluates the distribution of target classes in the dataset by measuring each class’s share of total records against the configured minimum threshold. For the Exited target, the results table and accompanying bar chart show two classes: class 0 at 79.80% of rows and class 1 at 20.20% of rows. Both observed class proportions are reported against a minimum percentage threshold of 10%, with a pass/fail outcome shown for each class.
Key insights:
Both classes exceed threshold: Class 0 accounts for 79.80% of observations and class 1 accounts for 20.20%. Both classes are above the configured 10% minimum threshold and are marked as Pass.
Majority class remains dominant: The target distribution is uneven, with class 0 representing approximately four times the share of class 1 based on the reported percentages.
Minority class has material representation: Although class 1 is the smaller class, its 20.20% share remains above the test threshold and is explicitly classified as passing.
The result shows that the Exited target contains an asymmetric class distribution, with class 0 as the majority class and class 1 as the minority class. At the same time, both classes meet the configured minimum representation criterion of 10%, and neither class is flagged by this test as underrepresented.
Parameters:
{
"min_percent_threshold": 10
}
Tables
Exited Class Imbalance
Exited
Percentage of Rows (%)
Pass/Fail
0
79.80%
Pass
1
20.20%
Pass
Figures
2026-11-20 23:10:34,635 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.ClassImbalance:raw_data does not exist in model's document
validmind.data_validation.Duplicates:raw_data
✅ Duplicates Raw Data
The Duplicates test evaluates the presence of exact duplicate rows in the dataset to quantify potential redundancy in the training data. The result table reports both the absolute count of duplicate rows and their share of total rows. For the raw dataset, the table shows 0 duplicate rows and a corresponding duplicate rate of 0.0%.
Key insights:
No duplicate rows detected: The test identified 0 duplicate rows in the raw dataset, indicating that no exact row-level repetitions were present in the evaluated data.
Duplicate share is zero: The reported percentage of duplicate rows is 0.0%, showing that duplicates did not contribute to the dataset composition.
Result is below threshold: With min_threshold set to 1, the observed duplicate count of 0 falls below the configured threshold.
The duplicate row assessment indicates that exact row-level duplication was not observed in the raw dataset. Both the absolute count and proportional measure are zero, and the measured result is below the configured threshold. Collectively, the test result documents an absence of exact duplicate records in the evaluated data sample.
Parameters:
{
"min_threshold": 1
}
Tables
Duplicate Rows Results for Dataset
Number of Duplicates
Percentage of Rows (%)
0
0.0
2026-11-20 23:10:38,982 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.Duplicates:raw_data does not exist in model's document
The High Cardinality test evaluates the number of unique values in categorical columns to identify columns with large numbers of distinct categories. In this run, the results table reports the number and percentage of distinct values for the categorical columns Geography and Gender, alongside a pass/fail outcome based on the configured threshold. Geography has 3 distinct values and Gender has 2 distinct values, and both columns are recorded as passing the test.
Key insights:
No categorical columns failed: Both evaluated categorical columns, Geography and Gender, have a Pass result under the applied threshold.
Low distinct counts across categories: Geography contains 3 distinct values and Gender contains 2 distinct values, indicating limited category counts in the evaluated categorical features.
Distinct-value percentages are minimal: The reported percentages of distinct values are 0.0375 for Geography and 0.025 for Gender, both well below 0.1%.
The results show that the evaluated categorical fields exhibit low cardinality under the configured test criteria. Both categorical columns passed, with small distinct-value counts and very low distinct-value percentages. Across the columns included in the test output, no high-cardinality categorical feature was identified.
2026-11-20 23:10:43,387 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.HighCardinality:raw_data does not exist in model's document
validmind.data_validation.Skewness:raw_data
❌ Skewness Raw Data
The Skewness test evaluates the asymmetry of numerical feature distributions by calculating skewness for each numeric column and comparing the result against the configured maximum threshold of 1. The results table reports skewness values and pass/fail outcomes for nine numerical columns in the raw dataset. Seven columns are within the threshold and pass, while two columns exceed the threshold and fail. Observed skewness values range from -0.8867 to 1.4847 across the evaluated variables.
Key insights:
Two columns exceed threshold: Age and Exited are the only variables with skewness above the maximum threshold of 1, with values of 1.0245 and 1.4847 respectively, and both are marked as fail.
Exited shows highest skewness: Exited has the largest skewness value in the dataset at 1.4847, making it the most asymmetric distribution among the evaluated numeric columns.
Most variables are near symmetric: CreditScore (-0.062), Tenure (0.0077), Balance (-0.1353), IsActiveMember (-0.0796), and EstimatedSalary (0.0095) all have skewness values close to zero and pass the test.
Moderate skewness remains within threshold: NumOfProducts has a positive skewness of 0.7172 and HasCrCard has a negative skewness of -0.8867; both remain below the threshold and therefore pass.
The results indicate that skewness is limited across most numerical columns, with seven of nine variables remaining within the configured threshold. The most material exceptions are Age and Exited, which both exceed the cutoff and represent the strongest observed asymmetry in the dataset. Outside these two columns, the numerical features display low to moderate skewness, with several variables showing distributions close to symmetric based on their reported skewness values.
Parameters:
{
"max_threshold": 1
}
Tables
Skewness Results for Dataset
Column
Skewness
Pass/Fail
CreditScore
-0.0620
Pass
Age
1.0245
Fail
Tenure
0.0077
Pass
Balance
-0.1353
Pass
NumOfProducts
0.7172
Pass
HasCrCard
-0.8867
Pass
IsActiveMember
-0.0796
Pass
EstimatedSalary
0.0095
Pass
Exited
1.4847
Fail
2026-11-20 23:10:48,847 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.Skewness:raw_data does not exist in model's document
validmind.data_validation.UniqueRows:raw_data
❌ Unique Rows Raw Data
The UniqueRows test evaluates column-level diversity by comparing the percentage of unique values in each field against the configured minimum threshold of 1%. The results table reports the number and percentage of unique values for 11 columns, together with a pass/fail outcome for each column. Three columns pass the test—EstimatedSalary, Balance, and CreditScore—while the remaining eight columns fall below the threshold. Reported uniqueness ranges from 0.025% to 100.0% across the dataset.
Key insights:
Only three columns passed: EstimatedSalary, Balance, and CreditScore exceed the 1% uniqueness threshold, with uniqueness percentages of 100.0%, 63.6%, and 5.65%, respectively.
EstimatedSalary is fully unique: EstimatedSalary contains 8,000 unique values, corresponding to 100.0% uniqueness, which is the highest value observed in the test output.
Balance shows substantial diversity: Balance records 5,088 unique values, equal to 63.6% uniqueness, making it the second most unique column in the dataset.
Most columns have very low uniqueness: Eight columns fail the threshold, including Geography (0.0375%), Gender (0.025%), Age (0.8625%), Tenure (0.1375%), NumOfProducts (0.05%), HasCrCard (0.025%), IsActiveMember (0.025%), and Exited (0.025%).
Age is the closest failing column: Age has 69 unique values and a uniqueness rate of 0.8625%, placing it below the 1% threshold but materially higher than the other failing columns.
The test results show that uniqueness is concentrated in a small subset of columns, with EstimatedSalary and Balance exhibiting the strongest diversity and CreditScore also remaining above threshold. Most remaining fields have low distinct-value counts relative to the dataset size and therefore fail the configured criterion. Overall, the observed pattern reflects a mix of highly variable numeric fields and multiple low-cardinality columns under this test definition.
Parameters:
{
"min_percent_threshold": 1
}
Tables
Column
Number of Unique Values
Percentage of Unique Values (%)
Pass/Fail
CreditScore
452
5.6500
Pass
Geography
3
0.0375
Fail
Gender
2
0.0250
Fail
Age
69
0.8625
Fail
Tenure
11
0.1375
Fail
Balance
5088
63.6000
Pass
NumOfProducts
4
0.0500
Fail
HasCrCard
2
0.0250
Fail
IsActiveMember
2
0.0250
Fail
EstimatedSalary
8000
100.0000
Pass
Exited
2
0.0250
Fail
2026-11-20 23:10:55,383 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.UniqueRows:raw_data does not exist in model's document
The TooManyZeroValues test evaluates numerical columns for zero-value frequency above a defined threshold. For this run, the threshold was set at 0.03%, and the results table reports zero-value counts, percentages, and pass/fail status for each evaluated numerical variable. Four variables are listed in the output: Tenure, Balance, HasCrCard, and IsActiveMember, each with a row count of 8,000. All four variables exceeded the threshold and are marked as failed.
Key insights:
All evaluated variables failed: Each of the four numerical variables exceeded the 0.03% zero-value threshold and received a Fail result.
IsActiveMember has the highest zero share: IsActiveMember contains 3,841 zero values out of 8,000 rows, corresponding to 48.0125%, which is the highest percentage among the evaluated variables.
Balance shows substantial zero concentration: Balance contains 2,912 zero values, representing 36.4% of observations.
HasCrCard and Tenure also exceed threshold materially: HasCrCard records 2,379 zero values (29.7375%), while Tenure records 323 zero values (4.0375%), with both remaining above the configured threshold.
The results show that zero values are present above the configured threshold in every numerical variable assessed by this test. The concentration of zeros varies materially across variables, ranging from 4.0375% in Tenure to 48.0125% in IsActiveMember, with Balance and HasCrCard also showing elevated zero frequencies. Collectively, the output indicates that zero-value prevalence is broad-based across the evaluated numerical fields rather than isolated to a single variable.
Parameters:
{
"max_percent_threshold": 0.03
}
Tables
Variable
Row Count
Number of Zero Values
Percentage of Zero Values (%)
Pass/Fail
Tenure
8000
323
4.0375
Fail
Balance
8000
2912
36.4000
Fail
HasCrCard
8000
2379
29.7375
Fail
IsActiveMember
8000
3841
48.0125
Fail
2026-11-20 23:11:00,605 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TooManyZeroValues:raw_data does not exist in model's document
The Interquartile Range Outliers Table test evaluates numerical features for observations falling outside the IQR-based outlier thresholds. The result is presented as a summary table of detected outliers by feature, including counts and distributional summary statistics where outliers are present. In this test run, the outlier summary table is empty, indicating that no rows were reported in the output.
Key insights:
No outlier rows reported: The result table contains no entries under the “Summary of Outliers Detected by IQR Method,” so no feature-level outlier counts or summary statistics are shown.
No feature-specific outlier summaries available: Because the table is empty, there are no reported minimum, quartile, median, or maximum values for outlier subsets in any numerical feature.
Threshold parameter recorded: The test was executed with a threshold parameter of 5, as documented in the test parameters.
The reported output shows no feature-level outlier results in the IQR summary table for this test execution. As a result, the test artifact does not contain numerical-feature outlier counts or associated summary statistics, and the documented threshold for the run is 5.
Parameters:
{
"threshold": 5
}
Tables
Summary of Outliers Detected by IQR Method
2026-11-20 23:11:04,840 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.IQROutliersTable:raw_data does not exist in model's document
The Descriptive Statistics test evaluates the distributional characteristics of numerical and categorical variables in the preprocessed dataset. The results present summary statistics for seven numerical variables and category concentration measures for two categorical variables, each based on 3,232 observations. For numerical fields, the tables report central tendency, dispersion, and percentile ranges from the minimum through the 95th percentile and maximum. For categorical fields, the results show the number of unique values, the most frequent category, and the concentration of that category within the sample.
Key insights:
No missingness in reported fields: All numerical and categorical variables show a count of 3,232, indicating complete coverage for the variables included in this summary.
Balance shows strong concentration at zero: Balance has a minimum and 25th percentile of 0.0, while the median is 103,648 and the mean is 82,639.6612. This indicates that at least one quarter of observations have zero balance alongside a wide spread across the remaining distribution.
Balance and salary have the largest dispersion: Balance has a standard deviation of 61,538.1449 and EstimatedSalary has a standard deviation of 57,760.6552, the highest among the reported numerical variables. Their ranges are also broad, with Balance spanning 0 to 250,898 and EstimatedSalary spanning 12 to 199,808.
CreditScore is broadly distributed: CreditScore ranges from 350 to 850, with a mean of 648.9468 and median of 651.0. The interquartile range extends from 581 to 718, indicating substantial spread across the score distribution.
Tenure is centered near the midpoint: Tenure has a mean of 4.9842 and a median of 5.0 within a bounded range of 0 to 10. The 25th and 75th percentiles are 2.0 and 8.0, respectively, indicating a broadly distributed but centrally balanced tenure profile.
Product ownership is concentrated in lower counts: NumOfProducts has a median of 1.0, a 75th percentile of 2.0, and a maximum of 4.0. The mean of 1.5114 indicates that the distribution is concentrated around one to two products.
Categorical concentration is moderate: Geography contains 3 unique values, with France as the top category at 1,493 observations or 46.19%. Gender contains 2 unique values, with Male as the top category at 1,659 observations or 51.33%, indicating limited dominance by the leading category in both fields.
The descriptive summary shows complete observations across all reported variables and a mix of bounded, binary, and continuous distributions. The most pronounced distributional feature is Balance, where a zero lower quartile coexists with a substantially higher median and wide overall range. Other numerical variables are more centered around their medians, with especially close alignment between mean and median for CreditScore, Tenure, and EstimatedSalary. The categorical variables exhibit low cardinality with moderate concentration in the most frequent categories rather than extreme dominance.
Tables
Numerical Variables
Name
Count
Mean
Std
Min
25%
50%
75%
90%
95%
Max
CreditScore
3232.0
648.9468
98.3670
350.0
581.0
651.0
718.0
777.0
815.0
850.0
Tenure
3232.0
4.9842
2.9283
0.0
2.0
5.0
8.0
9.0
10.0
10.0
Balance
3232.0
82639.6612
61538.1449
0.0
0.0
103648.0
129869.0
150804.0
165149.0
250898.0
NumOfProducts
3232.0
1.5114
0.6726
1.0
1.0
1.0
2.0
2.0
3.0
4.0
HasCrCard
3232.0
0.6909
0.4622
0.0
0.0
1.0
1.0
1.0
1.0
1.0
IsActiveMember
3232.0
0.4709
0.4992
0.0
0.0
0.0
1.0
1.0
1.0
1.0
EstimatedSalary
3232.0
99267.9384
57760.6552
12.0
49584.0
98654.0
149108.0
178721.0
189481.0
199808.0
Categorical Variables
Name
Count
Number of Unique Values
Top Value
Top Value Frequency
Top Value Frequency %
Geography
3232.0
3.0
France
1493.0
46.19
Gender
3232.0
2.0
Male
1659.0
51.33
2026-11-20 23:11:13,721 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.DescriptiveStatistics:preprocessed_data does not exist in model's document
The Tabular Description Tables test evaluates descriptive statistics and field-level metadata for the preprocessed dataset. The results summarize numerical variables by observation count, mean, minimum, maximum, missing-value percentage, and data type, and summarize categorical variables by observation count, number of unique values, listed categories, missing-value percentage, and data type. The preprocessed data contains eight numerical variables and two categorical variables, each reported over 3,232 observations. Reported ranges and category listings provide a compact view of variable coverage, encoding, and completeness.
Key insights:
No missing values reported: All numerical and categorical variables show 0.0% missing values across the 3,232 observations included in the preprocessed dataset.
Binary indicators are consistently encoded: HasCrCard, IsActiveMember, and Exited are stored as int64 with minimum and maximum values of 0 and 1. Their means are 0.6909, 0.4709, and 0.5000 respectively, indicating the proportion of positive-class observations for each field.
Target is evenly balanced: Exited has a mean of 0.5 with values bounded between 0 and 1, indicating an equal split between the two classes in this dataset.
Continuous variables show broad numeric ranges: Balance ranges from 0.0 to 250,898.09 with a mean of 82,639.6612, while EstimatedSalary ranges from 11.58 to 199,808.1 with a mean of 99,267.9384. CreditScore spans 350.0 to 850.0 with a mean of 648.9468.
Categorical fields have limited cardinality: Geography contains 3 unique values—Germany, Spain, and France—while Gender contains 2 unique values—Female and Male. Both are stored as object and have no missing values.
The descriptive summary shows a fully populated preprocessed dataset with consistent typing across all reported fields and no observed missingness. Numerical variables include both bounded binary indicators and wider-range continuous measures, while categorical variables are low-cardinality and explicitly enumerated. The target field Exited is balanced in the reported sample, and all variables are represented over the same 3,232 observations.
Tables
Numerical Variable
Num of Obs
Mean
Min
Max
Missing Values (%)
Data Type
CreditScore
3232
648.9468
350.00
850.00
0.0
int64
Tenure
3232
4.9842
0.00
10.00
0.0
int64
Balance
3232
82639.6612
0.00
250898.09
0.0
float64
NumOfProducts
3232
1.5114
1.00
4.00
0.0
int64
HasCrCard
3232
0.6909
0.00
1.00
0.0
int64
IsActiveMember
3232
0.4709
0.00
1.00
0.0
int64
EstimatedSalary
3232
99267.9384
11.58
199808.10
0.0
float64
Exited
3232
0.5000
0.00
1.00
0.0
int64
Categorical Variable
Num of Obs
Num of Unique Values
Unique Values
Missing Values (%)
Data Type
Geography
3232.0
3.0
['Germany' 'Spain' 'France']
0.0
object
Gender
3232.0
2.0
['Female' 'Male']
0.0
object
2026-11-20 23:11:20,190 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TabularDescriptionTables:preprocessed_data does not exist in model's document
The Missing Values test evaluates dataset completeness by measuring the proportion of missing entries in each feature against the configured 1% threshold. The results table lists each column with its count of missing values, percentage of missing values, and pass/fail outcome. For the preprocessed dataset, all 10 evaluated columns show 0 missing values and 0.0% missingness, and each column receives a Pass result.
Key insights:
No missing values detected: All evaluated features, including CreditScore, Geography, Gender, Tenure, Balance, NumOfProducts, HasCrCard, IsActiveMember, EstimatedSalary, and Exited, have 0 missing values.
All features pass threshold: Every column records 0.0% missingness, which is below the configured 1% minimum percentage threshold, resulting in a Pass outcome across the dataset.
Completeness is uniform across variables: Missingness results are consistent across all 10 columns, with no variation in missing-value counts or percentages between features.
The test results show that the preprocessed dataset is fully complete for all evaluated fields under the applied missingness criterion. No column exhibits any observed missing data, and no threshold breaches are present. The completeness profile is uniform across predictors and the target variable included in the table.
Parameters:
{
"min_percentage_threshold": 1
}
Tables
Column
Number of Missing Values
Percentage of Missing Values (%)
Pass/Fail
CreditScore
0
0.0
Pass
Geography
0
0.0
Pass
Gender
0
0.0
Pass
Tenure
0
0.0
Pass
Balance
0
0.0
Pass
NumOfProducts
0
0.0
Pass
HasCrCard
0
0.0
Pass
IsActiveMember
0
0.0
Pass
EstimatedSalary
0
0.0
Pass
Exited
0
0.0
Pass
2026-11-20 23:11:24,595 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.MissingValues:preprocessed_data does not exist in model's document
The TabularNumericalHistograms test evaluates the distribution of numerical input features by plotting histograms for each variable in the preprocessed dataset. The results show distinct distributional shapes across continuous, count, and binary features, including approximately bell-shaped, discrete, highly concentrated, and near-uniform patterns. The figures cover CreditScore, Tenure, Balance, NumOfProducts, HasCrCard, IsActiveMember, and EstimatedSalary, allowing direct visual inspection of concentration, spread, and tail behavior within each feature.
Key insights:
CreditScore is centrally concentrated: CreditScore shows a single broad peak centered in the mid-range, with frequencies increasing from the lower end toward the center and then tapering off toward higher values. The distribution appears broadly mound-shaped with thinner tails at both extremes.
Tenure is broadly even across levels: Tenure is distributed across integer values from 0 to 10 with relatively similar bar heights for most levels. The endpoints at 0 and 10 appear lower than many intermediate tenure values.
Balance includes a large zero mass: Balance shows a pronounced spike at 0 alongside a separate concentration over positive balances. Among non-zero values, the distribution is centered roughly around the 100k–140k range and then declines toward higher balances.
NumOfProducts is concentrated at low counts: NumOfProducts is discrete and heavily concentrated at 1 and 2, with substantially smaller frequencies at 3 and very limited frequency at 4. This indicates that higher product counts are comparatively rare in the plotted sample.
Binary features show class imbalance: HasCrCard has visibly more observations at 1 than at 0, while IsActiveMember appears closer to balanced, with a modestly higher count at 0 than at 1. Both variables are represented as two-point distributions consistent with binary encoding.
EstimatedSalary is approximately uniform: EstimatedSalary is spread across the full plotted range up to about 200k with relatively even bin heights and no dominant peak. The histogram does not show strong clustering in any narrow salary band.
The histograms indicate that the numerical feature set contains a mix of distribution types rather than a common shared shape. The most prominent structural features are the zero-heavy Balance distribution, the strong concentration of NumOfProducts at lower integer values, and the binary separation in HasCrCard and IsActiveMember. In contrast, CreditScore appears centrally concentrated, Tenure is broadly spread across its integer range, and EstimatedSalary is relatively even across its support.
Figures
2026-11-20 23:11:45,668 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TabularNumericalHistograms:preprocessed_data does not exist in model's document
The TabularCategoricalBarPlots test evaluates the composition of categorical features by displaying the count of observations in each category. In the preprocessed data, bar plots are shown for two categorical variables: Geography and Gender. The Geography plot contains three categories—France, Germany, and Spain—with France having the highest count, followed by Germany and then Spain. The Gender plot contains two categories—Male and Female—with counts that are close in magnitude and a slightly higher count for Male.
Key insights:
Geography is unevenly distributed: France is the largest geography category, Germany is intermediate, and Spain has the lowest count. The difference between the largest and smallest geography groups is visually material.
Gender is comparatively balanced: Male and Female counts are close to one another, with only a modest visual gap between the two categories.
Category cardinality remains low: Geography contains three categories and Gender contains two categories, indicating a limited number of levels across the categorical variables shown.
The categorical composition in the preprocessed data is concentrated more unevenly across Geography than across Gender. Geography shows a clear ranking in category prevalence, while Gender remains near-balanced. Overall, the plotted categorical variables have low cardinality, and the main observable distributional difference is the stronger concentration within the Geography feature.
Figures
2026-11-20 23:11:55,802 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TabularCategoricalBarPlots:preprocessed_data does not exist in model's document
The TargetRateBarPlots test evaluates categorical feature distributions alongside the observed positive-class rate for each category. The results show paired bar plots for the Geography and Gender features, with one chart displaying category counts and the other displaying target rates by category. For Geography, the categories shown are France, Germany, and Spain; for Gender, the categories shown are Male and Female. The plots therefore provide a side-by-side view of category prevalence and corresponding target-rate variation within these preprocessed categorical inputs.
Key insights:
Germany has the highest geography target rate: Within Geography, Germany shows the highest target rate at approximately 0.65, compared with roughly 0.42 for France and 0.45 for Spain. This indicates a materially higher observed positive-class rate for Germany than for the other geography categories shown.
France is the largest geography segment: France has the highest count at about 1,500 observations, followed by Germany at about 1,000 and Spain at about 750. The category with the highest target rate is therefore not the most frequent geography category in the plotted sample.
Female target rate exceeds male target rate: Within Gender, the target rate for Female is approximately 0.55 versus about 0.43 for Male. This reflects a visible separation in observed positive-class rates between the two gender categories.
Gender counts are relatively balanced: The Gender count plot shows similar category frequencies, with Male at roughly 1,650 observations and Female at roughly 1,550. The difference in target rate is therefore observed across categories with comparable sample sizes.
The plotted categorical features show clear variation in observed target rates across categories. The largest separation appears within Geography, where Germany has a substantially higher target rate than France and Spain, while Gender shows a smaller but still visible difference, with Female above Male. Category frequencies are uneven for Geography and relatively balanced for Gender, providing context for interpreting the target-rate comparisons shown in the plots.
Figures
2026-11-20 23:12:05,982 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TargetRateBarPlots:preprocessed_data does not exist in model's document
The Descriptive Statistics test evaluates the distributional characteristics of the development data by summarizing central tendency, dispersion, and percentile ranges for each numeric variable. The results report separate summaries for train_dataset_final and test_dataset_final, covering CreditScore, Tenure, Balance, NumOfProducts, HasCrCard, IsActiveMember, and EstimatedSalary. Counts are 2,585 observations in the training set and 647 observations in the test set, and the reported statistics allow direct comparison of location, spread, and tail behavior across the two samples.
Key insights:
Train and test distributions are broadly aligned: Most variables show similar medians, interquartile ranges, and upper-tail percentiles across train_dataset_final and test_dataset_final. This pattern is visible for Tenure, NumOfProducts, HasCrCard, IsActiveMember, and EstimatedSalary, where the 25th, 50th, and 75th percentiles are closely matched between samples.
CreditScore is lower in the test set: CreditScore has a mean of 650.98 and median of 653 in training versus a mean of 640.81 and median of 641 in testing. The test set also has a higher standard deviation (105.58 vs. 96.39), indicating a modest downward shift in center with slightly greater dispersion.
Balance shows strong asymmetry in both samples: For Balance, the mean is below the median in both datasets (83,359 vs. 104,632 in training; 79,765 vs. 99,811 in testing), and the 25th percentile is 0 in both cases. This reflects concentration at zero values together with a broad upper range extending to 250,898 in training and 238,388 in testing.
Binary indicators remain proportionally stable: HasCrCard is nearly unchanged across datasets, with means of 0.6905 in training and 0.6924 in testing. IsActiveMember is also similar, though slightly higher in the test set (0.4961 vs. 0.4646), while medians remain 0 in both samples.
EstimatedSalary spans a wide range with similar spread: EstimatedSalary exhibits broad dispersion in both datasets, with standard deviations of 58,050 in training and 56,612 in testing. The means are close (99,612 vs. 97,894), and the upper percentiles remain similar, with 95th percentiles of 190,007 and 187,631.
The descriptive statistics indicate that the training and test samples are generally similar across the reported numeric variables, with closely aligned percentile structures for most fields. The most visible difference is in CreditScore, where the test set is centered modestly lower and is somewhat more dispersed. Balance stands out in both datasets for its asymmetric distribution and zero-valued lower quartile, while the binary variables and EstimatedSalary remain comparatively stable between samples.
Tables
dataset
Name
Count
Mean
Std
Min
25%
50%
75%
90%
95%
Max
train_dataset_final
CreditScore
2585.0
650.9845
96.3911
350.0
584.0
653.0
718.0
775.0
813.0
850.0
train_dataset_final
Tenure
2585.0
4.9710
2.9406
0.0
2.0
5.0
8.0
9.0
10.0
10.0
train_dataset_final
Balance
2585.0
83359.2439
61157.3962
0.0
0.0
104632.0
129908.0
150749.0
164767.0
250898.0
train_dataset_final
NumOfProducts
2585.0
1.5044
0.6689
1.0
1.0
1.0
2.0
2.0
3.0
4.0
train_dataset_final
HasCrCard
2585.0
0.6905
0.4624
0.0
0.0
1.0
1.0
1.0
1.0
1.0
train_dataset_final
IsActiveMember
2585.0
0.4646
0.4988
0.0
0.0
0.0
1.0
1.0
1.0
1.0
train_dataset_final
EstimatedSalary
2585.0
99611.8370
58050.3161
90.0
49026.0
100187.0
149518.0
179582.0
190007.0
199808.0
test_dataset_final
CreditScore
647.0
640.8053
105.5810
350.0
569.0
641.0
713.0
781.0
821.0
850.0
test_dataset_final
Tenure
647.0
5.0371
2.8802
0.0
3.0
5.0
8.0
9.0
10.0
10.0
test_dataset_final
Balance
647.0
79764.6671
63002.5372
0.0
0.0
99811.0
129523.0
151399.0
166968.0
238388.0
test_dataset_final
NumOfProducts
647.0
1.5394
0.6868
1.0
1.0
1.0
2.0
2.0
3.0
4.0
test_dataset_final
HasCrCard
647.0
0.6924
0.4618
0.0
0.0
1.0
1.0
1.0
1.0
1.0
test_dataset_final
IsActiveMember
647.0
0.4961
0.5004
0.0
0.0
0.0
1.0
1.0
1.0
1.0
test_dataset_final
EstimatedSalary
647.0
97893.9384
56611.9258
12.0
51377.0
93820.0
147032.0
176310.0
187631.0
199305.0
2026-11-20 23:12:15,761 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.DescriptiveStatistics:development_data does not exist in model's document
The Descriptive Statistics test evaluates the composition, ranges, and completeness of numerical and categorical variables in the development data. The results summarize 8 numerical variables and 3 categorical variables for both train_dataset_final and test_dataset_final, including observation counts, means, minimum and maximum values, missingness, and data types. The tables show side-by-side descriptive statistics for the train sample of 2,585 observations and the test sample of 647 observations, covering both continuous and binary-encoded fields.
Key insights:
No missing values observed: All reported numerical and categorical variables show Missing Values (%) of 0.0 in both train_dataset_final and test_dataset_final, indicating complete coverage across the summarized fields.
Train and test variable ranges are closely aligned: Several variables share identical or very similar bounds across datasets, including CreditScore with a range of 350 to 850 in both samples, Tenure with a range of 0 to 10 in both samples, and NumOfProducts with a range of 1 to 4 in both samples.
Binary indicators are consistently encoded: HasCrCard, IsActiveMember, and Exited are recorded as int64 with minimum 0 and maximum 1 in both datasets, while Geography_Germany, Geography_Spain, and Gender_Male are recorded as bool with two unique values (False and True) in both datasets.
Mean levels are similar across samples: The train and test means are close for multiple variables, including Tenure (4.971 vs. 5.0371), HasCrCard (0.6905 vs. 0.6924), NumOfProducts (1.5044 vs. 1.5394), and EstimatedSalary (99,611.837 vs. 97,893.9384).
Some numerical means differ between samples: CreditScore is lower in the test dataset than in the train dataset (640.8053 vs. 650.9845), Balance is lower in the test dataset (79,764.6671 vs. 83,359.2439), and Exited is higher in the test dataset (0.524 vs. 0.494).
The descriptive statistics indicate that the development data is fully populated for the variables reported and that train and test samples are structurally similar in variable coverage, data types, and observed ranges. Binary and categorical encodings are consistent across both datasets. The most notable sample differences appear in the mean levels of CreditScore, Balance, and Exited, while most other variables remain closely aligned between train and test.
Tables
dataset
Numerical Variable
Num of Obs
Mean
Min
Max
Missing Values (%)
Data Type
train_dataset_final
CreditScore
2585
650.9845
350.00
850.00
0.0
int64
train_dataset_final
Tenure
2585
4.9710
0.00
10.00
0.0
int64
train_dataset_final
Balance
2585
83359.2439
0.00
250898.09
0.0
float64
train_dataset_final
NumOfProducts
2585
1.5044
1.00
4.00
0.0
int64
train_dataset_final
HasCrCard
2585
0.6905
0.00
1.00
0.0
int64
train_dataset_final
IsActiveMember
2585
0.4646
0.00
1.00
0.0
int64
train_dataset_final
EstimatedSalary
2585
99611.8370
90.07
199808.10
0.0
float64
train_dataset_final
Exited
2585
0.4940
0.00
1.00
0.0
int64
test_dataset_final
CreditScore
647
640.8053
350.00
850.00
0.0
int64
test_dataset_final
Tenure
647
5.0371
0.00
10.00
0.0
int64
test_dataset_final
Balance
647
79764.6671
0.00
238387.56
0.0
float64
test_dataset_final
NumOfProducts
647
1.5394
1.00
4.00
0.0
int64
test_dataset_final
HasCrCard
647
0.6924
0.00
1.00
0.0
int64
test_dataset_final
IsActiveMember
647
0.4961
0.00
1.00
0.0
int64
test_dataset_final
EstimatedSalary
647
97893.9384
11.58
199304.74
0.0
float64
test_dataset_final
Exited
647
0.5240
0.00
1.00
0.0
int64
dataset
Categorical Variable
Num of Obs
Num of Unique Values
Unique Values
Missing Values (%)
Data Type
train_dataset_final
Geography_Germany
2585.0
2.0
[False True]
0.0
bool
train_dataset_final
Geography_Spain
2585.0
2.0
[False True]
0.0
bool
train_dataset_final
Gender_Male
2585.0
2.0
[ True False]
0.0
bool
test_dataset_final
Geography_Germany
647.0
2.0
[False True]
0.0
bool
test_dataset_final
Geography_Spain
647.0
2.0
[False True]
0.0
bool
test_dataset_final
Gender_Male
647.0
2.0
[False True]
0.0
bool
2026-11-20 23:12:23,421 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TabularDescriptionTables:development_data does not exist in model's document
The Class Imbalance test evaluates the distribution of target classes in a classification dataset by measuring the percentage share of each class against a minimum threshold. For the Exited target, results are reported separately for train_dataset_final and test_dataset_final using a min_percent_threshold of 10%. In the training dataset, class 0 represents 50.60% of rows and class 1 represents 49.40%; in the test dataset, class 1 represents 52.40% and class 0 represents 47.60%. The accompanying bar charts reflect these near-even class proportions in both datasets.
Key insights:
Both classes pass the threshold: All observed class shares exceed the 10% minimum threshold, and every class entry in both datasets is marked as Pass.
Training data is nearly balanced: In train_dataset_final, the Exited classes are split 50.60% versus 49.40%, a difference of 1.20 percentage points.
Test data remains close to balanced: In test_dataset_final, the Exited classes are split 52.40% versus 47.60%, a difference of 4.80 percentage points.
Class ordering differs by dataset: Class 0 is slightly more prevalent in the training dataset, while class 1 is slightly more prevalent in the test dataset.
The results show that the Exited target distribution is close to even in both the training and test datasets, with all class proportions comfortably above the configured 10% threshold. The training dataset is more evenly split than the test dataset, although the test dataset also remains near balanced. Collectively, the reported percentages and pass/fail outcomes indicate no threshold breach for either class in either dataset.
Parameters:
{
"min_percent_threshold": 10
}
Tables
dataset
Exited
Percentage of Rows (%)
Pass/Fail
train_dataset_final
0
50.60%
Pass
train_dataset_final
1
49.40%
Pass
test_dataset_final
1
52.40%
Pass
test_dataset_final
0
47.60%
Pass
Figures
2026-11-20 23:12:32,672 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.ClassImbalance:development_data does not exist in model's document
The UniqueRows test evaluates column-level data diversity by comparing the percentage of unique values in each column against the configured minimum threshold of 1%. Results are reported separately for train_dataset_final and test_dataset_final, showing the number and percentage of unique values for each feature together with a pass/fail outcome. In the training dataset, 3 of 10 listed columns pass the threshold, while in the test dataset 4 of 10 columns pass. The reported percentages range from 0.0774% to 100.0% in the training data and from 0.3091% to 100.0% in the test data.
Key insights:
EstimatedSalary is fully unique: EstimatedSalary records 2,585 unique values in train_dataset_final and 647 in test_dataset_final, corresponding to 100.0% unique values in both datasets.
Balance and CreditScore show higher diversity: Balance passes in both datasets with 68.9362% unique values in training and 66.1515% in testing, while CreditScore also passes in both with 16.2863% and 49.3045%, respectively.
Binary and low-cardinality columns consistently fail: HasCrCard, IsActiveMember, Geography_Germany, Geography_Spain, Gender_Male, and Exited each have only 2 unique values and fail in both datasets, with percentages of 0.0774% in training and 0.3091% in testing.
Tenure differs between training and test results: Tenure has 11 unique values in both datasets, but its uniqueness percentage is 0.4255% in training, resulting in a fail, and 1.7002% in testing, resulting in a pass.
NumOfProducts remains below threshold: NumOfProducts has 4 unique values in both datasets and fails in both cases, with 0.1547% unique values in training and 0.6182% in testing.
The results show that uniqueness is concentrated in a small subset of columns, particularly EstimatedSalary, Balance, and CreditScore, while several binary and low-cardinality variables fall below the 1% threshold in both datasets. The training dataset has fewer passing columns than the test dataset because Tenure remains below threshold in training but exceeds it in testing. Overall, the observed outcomes reflect a mixed uniqueness profile across features, with strong differentiation in continuous-valued variables and repeated failures among indicator-style columns.
Parameters:
{
"min_percent_threshold": 1
}
Tables
dataset
Column
Number of Unique Values
Percentage of Unique Values (%)
Pass/Fail
train_dataset_final
CreditScore
421
16.2863
Pass
train_dataset_final
Tenure
11
0.4255
Fail
train_dataset_final
Balance
1782
68.9362
Pass
train_dataset_final
NumOfProducts
4
0.1547
Fail
train_dataset_final
HasCrCard
2
0.0774
Fail
train_dataset_final
IsActiveMember
2
0.0774
Fail
train_dataset_final
EstimatedSalary
2585
100.0000
Pass
train_dataset_final
Geography_Germany
2
0.0774
Fail
train_dataset_final
Geography_Spain
2
0.0774
Fail
train_dataset_final
Gender_Male
2
0.0774
Fail
train_dataset_final
Exited
2
0.0774
Fail
test_dataset_final
CreditScore
319
49.3045
Pass
test_dataset_final
Tenure
11
1.7002
Pass
test_dataset_final
Balance
428
66.1515
Pass
test_dataset_final
NumOfProducts
4
0.6182
Fail
test_dataset_final
HasCrCard
2
0.3091
Fail
test_dataset_final
IsActiveMember
2
0.3091
Fail
test_dataset_final
EstimatedSalary
647
100.0000
Pass
test_dataset_final
Geography_Germany
2
0.3091
Fail
test_dataset_final
Geography_Spain
2
0.3091
Fail
test_dataset_final
Gender_Male
2
0.3091
Fail
test_dataset_final
Exited
2
0.3091
Fail
2026-11-20 23:12:40,227 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.UniqueRows:development_data does not exist in model's document
The Tabular Numerical Histograms test evaluates the univariate distributions of numerical features through histogram visualizations. The results include histograms for the development data split shown separately for train_dataset_final and test_dataset_final, covering CreditScore, Tenure, Balance, NumOfProducts, HasCrCard, IsActiveMember, EstimatedSalary, and the encoded indicator variables Geography_Germany, Geography_Spain, and Gender_Male. The plots show the shape, concentration, and range of each feature, allowing direct inspection of distributional form and the relative prevalence of discrete values for count and binary variables.
Key insights:
CreditScore is broadly unimodal: In both train and test splits, CreditScore is concentrated in the mid-range, with the highest density around roughly 600–700 and visibly lower counts in the extreme low and high ends.
Balance shows a large zero mass: Balance has a pronounced spike at zero in both splits, alongside a separate broad concentration centered approximately in the 100k–150k range, indicating a mixed distribution rather than a single continuous shape.
NumOfProducts is heavily concentrated at low counts: NumOfProducts takes only the discrete values 1 through 4, with value 1 the most frequent, 2 the next most frequent, and substantially fewer observations at 3 and 4 in both train and test data.
EstimatedSalary is approximately flat across its range: EstimatedSalary appears relatively evenly distributed from near 0 to 200k in both splits, without a dominant central peak or pronounced tail concentration.
Binary indicators show visible class imbalance: HasCrCard is concentrated at 1 more than 0 in both splits, while IsActiveMember appears closer to balanced but still uneven. The one-hot encoded geography indicators also show more false than true values for both Geography_Germany and Geography_Spain.
Train and test shapes are visually aligned: For the features shown, the test-set histograms follow the same general patterns observed in training, including the unimodal CreditScore shape, the zero-inflated Balance distribution, the discrete concentration of NumOfProducts, and the near-uniform EstimatedSalary spread.
Overall, the histogram review shows that the development data contains a mix of continuous, discrete, and binary numerical features with clearly different distributional forms. The most distinctive patterns are the zero-inflated Balance distribution, the low-count concentration in NumOfProducts, and the class imbalance in several binary indicators. Across train and test splits, the visual shapes remain broadly consistent for the features presented.
Figures
2026-11-20 23:13:20,628 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.TabularNumericalHistograms:development_data does not exist in model's document
The Mutual Information test evaluates the statistical dependency between each input feature and the target variable to assess feature relevance. The results are presented as feature-level mutual information scores for both train_dataset_final and test_dataset_final, with a minimum threshold of 0.01 indicated by a dashed reference line. In both datasets, NumOfProducts has the highest score by a clear margin, while the remaining features are distributed around or below the threshold. The plots also show differences in feature ordering and relative score magnitude between the training and test datasets.
Key insights:
NumOfProducts is the dominant feature: NumOfProducts has the highest mutual information score in both datasets, at approximately 0.088 in train_dataset_final and 0.121 in test_dataset_final, substantially above all other features.
Few features exceed the threshold: In train_dataset_final, NumOfProducts, IsActiveMember, Geography_Germany, and Balance are above the 0.01 threshold. In test_dataset_final, NumOfProducts, Gender_Male, IsActiveMember, and Geography_Germany are above the threshold.
Several features remain below threshold: HasCrCard, CreditScore, and EstimatedSalary are below 0.01 in the training dataset, while Balance, Tenure, EstimatedSalary, CreditScore, HasCrCard, and Geography_Spain are below 0.01 in the test dataset.
Zero or near-zero scores are present: In train_dataset_final, Tenure, Geography_Spain, and Gender_Male appear at or near zero. In test_dataset_final, CreditScore, HasCrCard, and Geography_Spain appear at or near zero, with EstimatedSalary also very close to zero.
Feature relevance shifts across datasets: Gender_Male is near zero in the training dataset but rises above the threshold in the test dataset at approximately 0.02. Conversely, Balance is above the threshold in training at approximately 0.013 but falls below it in test at approximately 0.004, and CreditScore declines from just below threshold in training to near zero in test.
The mutual information results show a concentrated signal structure in which NumOfProducts contributes the largest observed dependency with the target in both datasets. Only a small subset of features exceeds the 0.01 threshold in either sample, while multiple features have low, near-zero, or zero scores. The comparison between training and test results also indicates that feature-level relevance is not identical across datasets, with some variables changing position relative to the threshold and others exhibiting material shifts in score magnitude.
Parameters:
{
"min_threshold": 0.01
}
Figures
2026-11-20 23:13:34,674 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.MutualInformation:development_data does not exist in model's document
The PearsonCorrelationMatrix test evaluates linear dependency between numerical variables in the dataset using pairwise Pearson correlation coefficients. The result is shown as correlation heat maps for both the training and test datasets, with coefficients ranging from -1 to 1 and diagonal values of 1.0. The displayed correlations are generally concentrated near zero, with a limited number of moderate positive or negative relationships visible across the feature set. The target variable Exited is included in the matrix alongside the input variables, allowing its linear association with each feature to be viewed in the same structure.
Key insights:
No high pairwise correlations observed: No pairwise correlation shown in either heat map reaches the stated high-correlation threshold of 0.7 in absolute value. The largest visible magnitudes are approximately 0.42, -0.37, and -0.36.
Balance and Geography_Germany show the strongest positive relationship: Balance and Geography_Germany have correlations of 0.42 in the training data and 0.41 in the test data, making this the strongest positive pairwise relationship displayed.
Geography indicators are moderately negatively related: Geography_Germany and Geography_Spain show correlations of -0.36 in training and -0.37 in test, representing a consistent moderate negative relationship across datasets.
Balance and NumOfProducts are moderately negative: The correlation between Balance and NumOfProducts is -0.17 in training and -0.22 in test, indicating a modest negative association that is somewhat stronger in the test dataset.
Exited has only weak linear associations with individual features: In the training data, the largest visible correlations with Exited are Geography_Germany at 0.21 and IsActiveMember at -0.21, followed by Balance at 0.15 and Gender_Male at -0.14. In the test data, the corresponding magnitudes are smaller, with Geography_Germany at 0.16, IsActiveMember at -0.16, Gender_Male at -0.10, and Balance at 0.09.
The correlation structure is sparse and low in magnitude overall, with no evidence in the displayed results of strong linear dependence among the variables. The most prominent relationships are stable across training and test datasets, particularly for Balance with Geography_Germany and for the negative relationship between the geography indicator variables. Linear associations with Exited remain weak in both datasets, and the test sample generally shows slightly smaller target correlations than the training sample.
Figures
2026-11-20 23:13:46,926 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.PearsonCorrelationMatrix:development_data does not exist in model's document
The High Pearson Correlation test evaluates pairwise linear relationships between features to identify potentially redundant or highly collinear variables. The results report the top correlations for both train_dataset_final and test_dataset_final using an absolute correlation threshold of 0.3 to determine Pass or Fail status. Across the reported pairs, coefficients range from -0.3635 to 0.4193 in the training dataset and from -0.3655 to 0.4081 in the test dataset. In both datasets, two feature pairs exceed the threshold and are marked as Fail, while the remaining reported correlations are below the threshold and marked as Pass.
Key insights:
Two failed pairs in both datasets: The same two feature pairs exceed the 0.3 threshold in both samples: (Balance, Geography_Germany) and (Geography_Germany, Geography_Spain). Their repeated appearance in both training and test results indicates a consistent correlation structure across the reported datasets.
Balance and Germany show strongest positive correlation: (Balance, Geography_Germany) is the largest reported positive correlation in both datasets, with coefficients of 0.4193 in train_dataset_final and 0.4081 in test_dataset_final. This pair is the highest-magnitude positive relationship among the reported results.
Geography indicators are moderately negatively correlated: (Geography_Germany, Geography_Spain) shows coefficients of -0.3635 in training and -0.3655 in testing, exceeding the threshold in absolute value in both cases. This is the strongest negative relationship reported in each dataset.
Remaining reported correlations are below threshold: All other listed pairs are marked Pass, with absolute coefficients at or below 0.2235 in the test dataset and 0.2146 in the training dataset. These include relationships involving Exited, IsActiveMember, NumOfProducts, Gender_Male, and Tenure.
The reported correlation structure is concentrated in two recurring feature pairs that exceed the configured threshold in both training and test data, while all other listed relationships remain below that cutoff. The strongest observed association is the positive relationship between Balance and Geography_Germany, followed by the negative relationship between Geography_Germany and Geography_Spain. Outside of these two pairs, the reported linear relationships are comparatively weak based on the provided coefficients.
2026-11-20 23:13:54,917 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.data_validation.HighPearsonCorrelation:development_data does not exist in model's document
validmind.model_validation.ModelMetadata
Model Metadata
The ModelMetadata test compares core metadata across models to summarize their implementation attributes, including modeling technique, framework, framework version, and programming language. The result table lists two models, log_model_champion and rf_model, and reports each model’s metadata in a standardized side-by-side format. The reported fields cover modeling technique, modeling framework, framework version, and programming language for both models.
Key insights:
Metadata is fully aligned across models: Both log_model_champion and rf_model are recorded with the same values across all reported fields in the summary table.
Common modeling stack observed: Each model is documented as SKlearnModel using the sklearn framework, indicating a shared implementation framework.
Identical version and language: Both models list framework version 1.7.2 and programming language Python, showing no differences in the reported runtime metadata.
The metadata comparison shows a consistent implementation profile across the two documented models. No differences are present in the reported modeling technique, framework, framework version, or programming language fields. Based on the fields included in this test output, the two models are documented as using the same technical stack.
Tables
model
Modeling Technique
Modeling Framework
Framework Version
Programming Language
log_model_champion
SKlearnModel
sklearn
1.7.2
Python
rf_model
SKlearnModel
sklearn
1.7.2
Python
2026-11-20 23:13:59,773 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.model_validation.ModelMetadata does not exist in model's document
The Model Parameters test extracts and displays estimator configuration values to document the settings that define model behavior and support reproducibility. The results present parameter tables for two models, log_model_champion and rf_model, with each row listing a parameter name and its recorded value. For log_model_champion, the table shows logistic regression settings including regularization, solver, convergence, and intercept-related parameters. For rf_model, the table shows random forest settings covering ensemble size, split criteria, sampling configuration, and reproducibility controls.
Key insights:
Two model configurations are documented: The output captures parameter sets for both log_model_champion and rf_model, indicating that the test recorded configuration details for the two modeled estimators included in the run.
Logistic regression uses L1 regularization: log_model_champion is configured with penalty = l1, solver = liblinear, and C = 1. The same table also shows fit_intercept = True, max_iter = 100, and tol = 0.0001 as the recorded optimization-related settings.
Random forest uses 50 trees: rf_model is configured with n_estimators = 50, with criterion = gini, bootstrap = True, and max_features = sqrt. The split and leaf controls shown are min_samples_split = 2 and min_samples_leaf = 1.
Random seed is explicitly fixed for the forest model: The parameter table records random_state = 42 for rf_model, providing an explicit reproducibility control for that estimator.
Non-training diagnostic flags are disabled: The results show verbose = 0 and warm_start = False for both models. For the forest model, oob_score = False is also recorded.
The parameter extraction result provides a structured record of the configurations used for the logistic regression and random forest estimators in this run. The logistic regression configuration is defined by an L1-regularized liblinear specification with explicit convergence settings, while the random forest configuration is defined by a 50-tree ensemble with bootstrap sampling, Gini splitting, and a fixed random seed. Collectively, the output documents the model settings required to identify and reproduce these estimator configurations.
Tables
model
Parameter
Value
log_model_champion
C
1
log_model_champion
dual
False
log_model_champion
fit_intercept
True
log_model_champion
intercept_scaling
1
log_model_champion
max_iter
100
log_model_champion
multi_class
auto
log_model_champion
penalty
l1
log_model_champion
solver
liblinear
log_model_champion
tol
0.0001
log_model_champion
verbose
0
log_model_champion
warm_start
False
rf_model
bootstrap
True
rf_model
ccp_alpha
0.0
rf_model
criterion
gini
rf_model
max_features
sqrt
rf_model
min_impurity_decrease
0.0
rf_model
min_samples_leaf
1
rf_model
min_samples_split
2
rf_model
min_weight_fraction_leaf
0.0
rf_model
n_estimators
50
rf_model
oob_score
False
rf_model
random_state
42
rf_model
verbose
0
rf_model
warm_start
False
2026-11-20 23:14:06,851 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.model_validation.sklearn.ModelParameters does not exist in model's document
validmind.model_validation.sklearn.ROCCurve
ROC Curve
The ROCCurve test evaluates classification performance by plotting the receiver operating characteristic curve and calculating the area under the curve (AUC) to summarize class discrimination across decision thresholds. Results are shown for log_model_champion on both train_dataset_final and test_dataset_final, with each plot comparing the model ROC curve against the random-classification reference line. The reported AUC is 0.69 on the training dataset and 0.64 on the test dataset, and in both cases the ROC curve remains above the 0.5 random baseline throughout most of the plotted range.
Key insights:
AUC exceeds random baseline: The model records an AUC of 0.69 on the training dataset and 0.64 on the test dataset. Both values are above the 0.50 reference shown in the plots, indicating discrimination better than random classification in both samples.
Lower discrimination on test data: AUC declines from 0.69 in training to 0.64 in testing. This reflects weaker separation between classes on the test dataset than on the training dataset.
ROC curves stay above diagonal: In both figures, the ROC curve is positioned above the dashed random baseline across most false positive rate values. This indicates positive true positive rate gain relative to random ranking across a broad range of thresholds.
Performance gap is moderate: The absolute difference between train and test AUC is 0.05. The decrease is visible but limited in magnitude relative to the full 0 to 1 AUC scale.
The ROC results show that log_model_champion maintains discriminatory ability above the random benchmark on both training and test datasets, with AUC values of 0.69 and 0.64 respectively. The lower test AUC indicates reduced out-of-sample separation compared with training, while the modest 0.05 gap suggests the decline is present but not large. Overall, the observed ROC profiles reflect consistent but moderate classification discrimination across the two evaluated datasets.
Figures
2026-11-20 23:14:17,817 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.model_validation.sklearn.ROCCurve does not exist in model's document
The Minimum ROC AUC Score test evaluates whether the model’s ROC AUC score meets or exceeds the specified minimum threshold on the evaluated datasets. The results table reports ROC AUC scores for both the training and test datasets alongside the common threshold of 0.5 and the corresponding pass/fail outcome. The observed scores are 0.6934 for train_dataset_final and 0.6421 for test_dataset_final, and both results are recorded as passing.
Key insights:
Both datasets passed threshold: The ROC AUC score exceeded the minimum threshold of 0.5 on both evaluated datasets. train_dataset_final passed with a score of 0.6934, and test_dataset_final passed with a score of 0.6421.
Training score is higher: The training dataset produced a higher ROC AUC score than the test dataset. The difference between the two reported scores is 0.0513.
Test performance remains above cutoff: The test_dataset_final ROC AUC score of 0.6421 remains above the minimum acceptance threshold by 0.1421, indicating that the test dataset result satisfied the configured criterion.
The results show that the model met the configured Minimum ROC AUC Score requirement on both the training and test datasets. Performance was higher on the training dataset than on the test dataset, while both scores remained above the threshold used in this test. Collectively, the outcome indicates that the model satisfied the documented ROC AUC acceptance criterion across the evaluated samples.
Parameters:
{
"min_threshold": 0.5
}
Tables
dataset
Score
Threshold
Pass/Fail
train_dataset_final
0.6934
0.5
Pass
test_dataset_final
0.6421
0.5
Pass
2026-11-20 23:14:23,458 - INFO(validmind.vm_models.result.result): Test driven block with result_id validmind.model_validation.sklearn.MinimumROCAUCScore does not exist in model's document
In summary
In this final notebook, you learned how to:
With our ValidMind for validation series of notebooks, you learned how to validate a record (model) end-to-end with the ValidMind Library by running through some common scenarios in a typical validation setting:
Verifying the data quality steps performed by the development team
Independently replicating the champion's results and conducting additional tests to assess performance, stability, and robustness
Setting up test inputs and a challenger for comparative analysis
Running validation tests, analyzing results, and logging artifacts to ValidMind
Next steps
Work with your validation report
Now that you've logged all your test results and verified the work done by the development team, head to the ValidMind Platform to wrap up your validation report. Continue to work on your validation report by:
Inserting additional test results: Click Link Evidence under any Evidence panel of 2. Validation in your validation report. (Learn more: Link evidence to reports)
Making qualitative edits to your test descriptions: Expand any linked evidence under Validator Evidence and click See evidence details to review and edit the ValidMind-generated test descriptions for quality and accuracy. (Learn more: Preparing validation reports)
Adding more findings: Click Link Finding to Report in any validation report section, then click + Create New Finding. (Learn more: Add and manage artifacts)
Adding risk assessment notes: Click under Risk Assessment Notes in any validation report section to access the text editor and content editing toolbar, including an option to generate a draft with AI. Once generated, edit your ValidMind-generated test descriptions to adhere to your organization's requirements. (Learn more: Work with content blocks)
Assessing compliance: Under the Guideline for any validation report section, click Assessment and select the compliance status from the drop-down menu. (Learn more: Assign compliance assessments)
Collaborate with other stakeholders: Use the ValidMind Platform's real-time collaborative features to work seamlessly together with the rest of your organization, including developers. Propose suggested changes in the documentation, work with versioned history, and use comments to discuss specific portions of the documentation. (Learn more: Collaborate with others)
When your validation report is complete and ready for review, submit it for approval from the same ValidMind Platform where you made your edits and collaborated with the rest of your organization, ensuring transparency and a thorough validation history. (Learn more: Submit documents)
Learn more
Now that you're familiar with the basics, you can explore the following notebooks to get a deeper understanding on how the ValidMind Library assists you in streamlining validation: