The Start Groups node in SAS® Enterprise Miner™ enables you to specify Cross-Validation as the Mode. (The processing uses the levels of one or more Stratification variables that you specify.) However, when the corresponding End Groups node generates Scoring SAS code, the code is not correct. The assessment of the final results is incorrect because the assessment is based on the scored table. If you score new data using the Scoring SAS code, then the scores are not correct.
There are no errors or warnings to indicate a problem.
If you are applying the score code manually , then you can manually edit the score code to correct it before applying it. Applying score code manually involves using a DATA step to perform the scoring, instead of using a Score node. To correct the code, edit these lines in the score code. The number of lines depends on the number of levels of Stratification variable(s) in your data.
if ^(<a condition involving your Stratification variable(s)>) then do;
In each of those lines, remove the "not" symbol (^) so that the edited line looks like this:
if (<a condition involving your Stratification variable(s)>) then do;
EXAMPLE
The sample data set SAMPSIO.DMEXA1 is used to create a flow. In the Start Groups node, variables EDLEVEL and GENDER are specified as Stratification variables. The Mode is set to Cross-Validation.
Input Data ► Start Groups ► Decision Tree ► End Groups ► Score
After the flow runs, the End Groups node Scoring SAS code contains these lines:
...
if ^(_FORMAT1_11 ='Elementary' and GENDER ='male') then do;
...
if ^(_FORMAT1_11 ='High School' and GENDER ='female') then do;
...
if ^(_FORMAT1_11 ='High School' and GENDER ='male') then do;
...
...and so on, through the possible combinations of _FORMAT1_11 and GENDER. Save the Scoring SAS code from the Score node. Edit the saved code. In each of those lines, remove the "not" symbol (^) so that the edited lines look like these:
...
if (_FORMAT1_11 ='Elementary' and GENDER ='male') then do;
...
if (_FORMAT1_11 ='High School' and GENDER ='female') then do;
...
if (_FORMAT1_11 ='High School' and GENDER ='male') then do;
...
Operating System and Release Information
SAS System | SAS Enterprise Miner | Windows 7 Enterprise 32 bit | 4.3 | | | |
Microsoft Windows Server 2012 | 4.3 | | | |
Microsoft Windows Server 2008 for x64 | 4.3 | | | |
Microsoft Windows Server 2008 | 4.3 | | | |
Microsoft Windows Server 2003 for x64 | 4.3 | | | |
Microsoft Windows 95/98 | 4.3 | | | |
Microsoft Windows 8 Pro | 4.3 | | | |
Microsoft® Windows® for x64 | 4.3 | | | |
Tru64 UNIX | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Solaris for x64 | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Linux on Itanium | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Linux | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
HP-UX IPF | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled Solaris | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
64-bit Enabled AIX | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Windows Vista for x64 | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Windows Vista | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows NT Workstation | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 5.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
z/OS | 5.3 | 12.3 | 9.1 TS1M3 SP4 | 9.4 TS1M0 |
Windows 7 Enterprise x64 | 4.3 | | | |
Windows 7 Home Premium 32 bit | 4.3 | | | |
Windows 7 Home Premium x64 | 4.3 | | | |
Windows 7 Professional 32 bit | 4.3 | | | |
Windows 7 Professional x64 | 4.3 | | | |
Windows 7 Ultimate 32 bit | 4.3 | | | |
Windows 7 Ultimate x64 | 4.3 | | | |
Windows Millennium Edition (Me) | 4.3 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.