TD_TrainTestSplit Function | train_test_split | Teradata Vantage - TD_TrainTestSplit - Database Engine 20

Database Engine 20 In-Database Analytic Functions

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Database Engine 20
Release Number
20.00
Published
June 2025
ft:locale
en-US
ft:lastEdition
2026-03-09
dita:mapPath
rjr1747262120366.ditamap
dita:ditavalPath
jlp1749501702948.ditaval
dita:id
jmh1512506877710
Product Category
Teradata Vantageā„¢

The TD_TrainTestSplit function simulates how a model would perform on new data. The function randomly divides the data sets into train and test subsets to evaluate machine learning algorithms and validation processes. The first subset is used to train the model. The second subset is used to make predictions and compare the predictions to actual values. The proportion of the data allocated to the training set and the testing set can vary, but a common split is 75% of the data for training and 25% for testing.

The TD_TrainTestSplit function gives consistent results across multiple runs on same machine. With different machines, it might produce different train and test datasets.