The HP4SCORE Procedure

SCORE Statement

  • SCORE FILE=model-file-name OUT=libref.SAS-data-set <score-options> ;

The SCORE statement specifies the name of the model file and the name of the output data set. The IMPORTANCE statement cannot also be specified.

When running in distributed mode or with concurrent threads, the SCORE statement rearranges the observations. You need to include an ID statement to specify variables such as the target to include in the output data set if those variables will be needed in a subsequent analysis.

You must specify the following arguments:

FILE=model-file-name

specifies either the file reference or the full path and member name of the valid model file that was created by PROC HPFOREST.

OUT=libref.SAS-data-set

names the output SAS data set to contain the scored results.

You can also specify the following score-options:

MAXDEPTH=<n>

produces predictions from trees that are pruned to a depth of n. (The trees are not pruned by default.)

NTREES=<n>

produces predictions from the first n trees only. If this option is omitted, then PROC HP4SCORE uses all the trees in the model for predictions. Scoring with fewer trees can sometimes increase the speed without significantly reducing the accuracy.