Updated: March 2, 2016
Indicates whether a case is used as a test case for the specified data mining model or mining structure.
Returns true if the case is a part of the test data set; otherwise false.
If you use the Data Mining Wizard to create a mining structure and related mining model, by default, 30 percent of the cases are set aside for use as a test data set. The remaining cases are used for training the data mining model. The same test data set can be used with all models that are based on that structure. However, if you use DMX to create the mining model, by default, all data is used to train the model, and no test set is created. To enable creation of a test data set, you must set the parameters of the WITH HOLDOUT clause.
To return cases that are part of the training data set, use the function IsTrainingCase (DMX).
The following example uses the
Targeted Mailing mining structure that is created in the Basic Data Mining Tutorial. The query returns all the cases in the structure that are used for testing.
SELECT * FROM [Targeted Mailing].CASES WHERE IsTestCase()