When you attach an input
data set to the
Score node, SAS Enterprise
Miner knows to score that data set. However, you have not added the
SAMPSIO.DMAHMEQ data set to your project yet. To do so, complete the
following steps:
-
In the Project Panel,
right-click
Data Sources and click
Create
Data Source.
-
In the
Data
Source Wizard, click
Next.
-
Enter
SAMPSIO.DMAHMEQ
in
the
Table field. Click
Next.
-
In the
Table
Information window, click
Next.
-
In the
Metadata
Advisor Options window, click
Basic.
Click
Next.
-
In the
Column
Metadata window, click
Next.
-
In the
Create
Sample window, click
Next.
-
In the
Data
Source Attributes window, set the value of
Role to
Score.
Click
Next.
-
In the
Summary window,
click
Finish.
This creates the
All:
Home-Equity Loan Scoring Data data source in your Project
Panel. Drag this data source to the diagram workspace. Connect the
All:
Home-Equity Loan Scoring Data data source to the
Score node.
Set the value of the
Type
of Scored Data property to
View.
In the
Score Data properties subgroup, set
the value of the
Validation and
Test properties
to
Yes.
Right-click the
Score node
and click
Run. In the
Confirmation window,
click
Yes. Click
OK in
the
Run Status window.
On the
Utility tab,
drag a
SAS Code node to your diagram workspace.
Connect the
Score code to the
SAS
Code node. Click the ellipsis button next to the
Code
Editor property of the
SAS Code node.
In the
Training Code field, enter the following
code:
PROC SORT DATA=<diagramID>.Score_SCORE out=defaults;
BY DESCENDING P_BAD1;
run;
PROC PRINT DATA=DEFAULTS;
VAR BAD P_BAD1 P_BAD0;
run;
You must replace <diagramID>
with the value of the
ID property. This value
is displayed when you select the diagram in the Project Panel. Close
the
Training Code window. Click
Yes in
the
Save Changes window.
Right-click the
SAS
Code node and click
Run. In the
Confirmation window,
click
Yes. Click
Results in
the
Run Status window.
The scored values here
should match those obtained in the previous section. Close the
Results window.