Problem Note 57883: The Partial Least Squares (PLS) node might not set the Role to Rejected in data that is exported to subsequent nodes
In SAS® Enterprise Miner™, the Partial Least Squares (PLS) node should automatically set the exported data Role to Rejected for variables that are rejected by the model. However, the node might not set the Role to Rejected. As a result, subsequent nodes do not reject the correct variables.
The problem occurs when you run SAS Enterprise Miner using a non-English locale.
There are no errors or warnings to indicate a problem.
Workarounds include either of these two choices. Choose depending on whether you prefer an automatic method or a manual method:
- Use a Metadata node to manually change the Role to Rejected for variables
that should be rejected in subsequent nodes. Follow these steps:
- Run the Partial Least Squares node. View the results.
- In the Results window, select View ► Variable Selection
► Variable Selection.
- View the Role column in the Variable Selection table. Note which variables
are rejected. Close the Results window.
- Connect a Metadata node after the Partial Least Squares node.
- Click ... to open the Variables Train property. In the Variables window,
change the New Role to Rejected for each of the variables that you
noted in the previous step. Select OK to close the window.
- Use a SAS Code node to automatically change the Role to Rejected for
variables that should be rejected in subsequent nodes. Follow these steps:
- Connect a SAS Code node after the Partial Least Squares node.
- Click ... to open the Code Editor property. In the Training Code window,
enter this code:
filename X "&EM_FILE_CDELTA_TRAIN";
data _rejvars;
set &EM_LIB..&EM_METASOURCE_NODEID._varselout;
where _ROLE_ = "%sysfunc(sasmsg(sashelp.dmine, rpt_pls_label_rejected, noquote))";
length varname $32;
varname = upcase(trim(left(scan(Variable,1,''))));
run;
proc sort data=_rejvars NODUPKEY;
by varname;
run;
data _null_;
length string $200;
file X;
set _rejvars;
where _ROLE_ = "%sysfunc(sasmsg(sashelp.dmine, rpt_pls_label_rejected, noquote))";
string = "if upcase(trim(left(NAME))) eq '"!!trim(varname)!!"' then ROLE='REJECTED';";
put string;
run;
filename x;
proc delete data=_rejvars;
run;
Close the window. Select Yes to save the changes.
With either workaround, subsequent nodes use the corrected Role for rejected variables.
Operating System and Release Information
SAS System | SAS Enterprise Miner | Solaris for x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Linux for x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
HP-UX IPF | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
64-bit Enabled Solaris | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
64-bit Enabled AIX | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Windows 7 Professional x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Windows 7 Enterprise x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2012 Std | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2012 R2 Std | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2012 R2 Datacenter | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2012 Datacenter | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 10 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 8.1 Pro x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 8.1 Pro 32-bit | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 8.1 Enterprise x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 8.1 Enterprise 32-bit | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 8 Pro x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft Windows 8 Enterprise x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
Microsoft® Windows® for x64 | 12.3 | 14.3 | 9.4 TS1M0 | 9.4 TS1M5 |
*
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.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2017-08-08 08:30:16 |
Date Created: | 2016-03-17 09:13:17 |