Workflow: Dividing a dataset using the Partition block
IanBD
Altair Employee
The Partition block enables you to split up a dataset variable into multiple parts. For example, if you are training a model, you can use this block to split up a dataset into training and testing datasets.
The following demonstrates how to use the Partition block to split the input dataset IRIS.csv into three equal parts:
- Import the IRIS.csv dataset onto a Workflow canvas using the Text File Import block.
- Expand the Data Preparation group in the Workflow palette, then click and drag a Partition block onto the Workflow canvas.
- Click the Output port of the IRIS dataset block and drag a connection towards the Input port of the Partition block.
- Double-click the Partition block to display the Configure Partition dialog box.
- In the Configure Partition dialog box:
- Click Add Partition to create a third partition from the input dataset.
- Click Add Partition to create a third partition from the input dataset.
- Click OK to save the configuration and close the Configure Partition dialog box.
A green execution status is displayed in the Output port of the Partition block and the new Partition1, Partition2 and Partition3 datasets. The Partition block output datasets contain one third of the input IRIS dataset, split into three equal parts.
0