Training and testing

Another useful function in the SPSS modeler flow is the ability to easily divide data into training and testing sets. This can be accomplished using the Partition node. To train, test, and validate the stages of model building, the Partition nodes are used to produce a partition field that splits the data into separate subsets or samples.

Using a sample to generate the model and a separate sample to test it will get you a good hint of how well the model will generalize to larger datasets that are corresponding to the current data:

If we add a Partition node to our flow, open it and adjust the settings as shown in the preceding ...

Get Hands-On Machine Learning with IBM Watson now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.