The HPBNET Procedure

PARTITION Statement

  • PARTITION ROLEVAR=variable (TRAIN="value"  |  VALIDATE="value");

  • PARTITION FRACTION (VALIDATE=number  |  SEED=integer);

The PARTITION statement specifies how to divide the input data set into a training subset and a validation subset.

The statement implements two alternate methods of specifying the split between the training and validation data. Either you can explicitly specify training observations and validation observations by specifying ROLEVAR=variable, where variable is a variable in the input data set, or you can request that an approximate fraction of the input data set be used for validation observations by specifying FRACTION (VALIDATE=number). You can specify one, and only one, of the following options:

ROLEVAR=variable (TRAIN="value"  |  VALIDATE="value")

specifies that the variable in the input data set be used to decide whether an observation is used for training or for validation. The variable is treated as a nominal variable. You can request that the value be used to identify training observations or validation observations or both. PROC HPBNET uses an observation for training if the value of variable equals "value" in the TRAIN= suboption and for validation if the value of variable equals "value" in the VALIDATE= suboption.

By default, TRAIN="1" and VALIDATE="0".

FRACTION (VALIDATE=number  |  SEED=integer)

specifies the approximate fraction of the input data set to be used for validation. You can specify the following suboptions:

VALIDATE=number

specifies the approximate fraction of the data set to be used as validation observations. (The remaining data are used as training observations.) The valid range of number is 0 to 1, inclusive.

SEED=integer

specifies the random seed for partitioning the input data. Any integer is valid. When SEED=0, PROC HPBNET uses the current system time as the seed.

The split between training and validation observations can only approximate the requested fraction because that fraction is used as a cutoff value for a random number generator to determine the actual split. If you require a more accurate split, you must use the ROLEVAR option to specify the split explicitly.

By default, VALIDATE=0.33 and SEED=12345.

Last updated: May 25, 2022