I am trying to run autotune on some datasets for evaluation, but for some reason, on one small dataset it runs fine, but on a larger one, I get a bunch of errors. I run the online version of SAS Viya, I haven't downloaded anything.
The errors I get with the bigger dataset are "Error invoking action" and "Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied"
Any help would be appreciated.
Thanks in advance.
cas mysess sessopts=(nworkers=1); libname mycaslib cas casref=mysess; filename myfldr filesrvc folderPath = '/Public/Projects/'; %include myfldr ('SAS2017-0514_benchmark_datasets.sas'); /*source2;*/ /* Tune a Decision Tree to each benchmark problem */ /* -----------------------------Diabetes -------------------------------- */ proc cas noqueue; print "---TWONORM / TUNE DECISION TREE ---"; autotune.tuneDecisionTree result=r / trainOptions={ table={name='Twonorm', vars={{name='X1'}, {name='X2'}, {name='X3'}, {name='X4'}, {name='X5'}, {name='X6'}, {name='X7'}, {name='X8'}, {name='X9'}, {name='X10'}, {name='X11'}, {name='X12'}, {name='X13'}, {name='X14'}, {name='X15'}, {name='X16'}, {name='X17'}, {name='X18'}, {name='X19'}, {name='X20'},{name="Y"}}}, inputs={{name='X1'}, {name='X2'}, {name='X3'}, {name='X4'}, {name='X5'}, {name='X6'}, {name='X7'}, {name='X8'}, {name='X9'}, {name='X10'}, {name='X11'}, {name='X12'}, {name='X13'}, {name='X14'}, {name='X15'}, {name='X16'}, {name='X17'}, {name='X18'}, {name='X19'}, {name='X20'}}, target='Y', nominals={'Y'}, casOut={name='dt_twonorm_model', replace=true}, nbins=20, maxlevel=11, crit='GAINRATIO', maxbranch=2, leafsize=5, missing='USEINSEARCH', minuseinsearch=1, binorder=true, varimp=true, mergebin=true, encodeName=true } tunerOptions={nsubsessionworkers=1, nparallel=10, popsize=31, maxTime=300} ; print r; run; quit;
ERROR: Session option NWORKERS can only be set at session startup.
ERROR: The action stopped due to errors.
ERROR: Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied.
ERROR: Error invoking action 'dtreeTrain'.
ERROR: Error invoking action 'dtreeTrain'.
ERROR: Error invoking action 'dtreeTrain'.
ERROR: Error invoking action 'dtreeTrain'.
ERROR: Error invoking action 'dtreeTrain'.
ERROR: Insufficient resources to perform the analytic operation.
ERROR: The action stopped due to errors.
ERROR: Connection failed. Server returned: SAS Logon Manager authentication failed: Access denied.
ERROR: Error invoking action 'dtreeTrain'.
ERROR: Error in the tuneDecisionTree action.
ERROR: The action stopped due to errors.
WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
WARNING: Limit set by ERRORS= option reached. Further errors of this type will not be printed.
WARNING: Objective evaluation 2 was terminated.
NOTE: The CAS statement request to update one or more session options for session MYSESS completed.
NOTE: Libref MYCASLIB was successfully assigned as follows:
NOTE: The infile IN is:
NOTE: Invalid data for Y in line 1 1-4.
NOTE: Invalid data for X1 in line 1 6-9.
NOTE: Invalid data for X2 in line 1 11-17.
NOTE: 5301 records were read from the infile IN.
NOTE: The data set MYCASLIB.BANANA has 5301 observations and 3 variables.
NOTE: DATA statement used (Total process time):
NOTE: The infile IN is:
NOTE: Invalid data for X1 in line 1 7-17.
NOTE: Invalid data for X2 in line 1 19-30.
NOTE: 5002 records were read from the infile IN.
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set MYCASLIB.WAVEFORM has 5001 observations and 41 variables.
NOTE: DATA statement used (Total process time):
NOTE: Active Session now MYSESS.
NOTE: Autotune is started for 'Decision Tree' model.
NOTE: Autotune option SEARCHMETHOD='GA'.
NOTE: Autotune option MAXTIME=300 (sec.).
NOTE: Autotune option SEED=458531802.
NOTE: Autotune objective is 'Misclassification Error Percentage'.
NOTE: Autotune number of parallel evaluations is set to 10, each using 0 worker nodes.
NOTE: Added action set 'decisionTree'.
NOTE: Added action set 'decisionTree'.
NOTE: Action 'dtreeTrain' failed due to insufficient resources.
NOTE: PROCEDURE CAS used (Total process time):
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
75
76 cas mysess sessopts=(nworkers=2);
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.