The SAS Output Delivery System and reporting techniques

PROC HPSplit does not display graphs when ods graphics on in SAS 9.4

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

PROC HPSplit does not display graphs when ods graphics on in SAS 9.4

Hello,

I am trying to use proc hpsplit to perform some decision tree modeling, I think the procedure successfully generate a tree and output text based results, but for some reason the graphic plots are not displayed. the code is below:

 

ODS SELECT ALL;
ods trace on;
ods graphics on;
proc hpsplit data=save.treedata assignmissing=similar cvmethod=random(5) intervalbins=10 mincatsize=15
minleafsize=35 nodes=detail plots=all cvmodelfit;
class Good
&charvarname ;
model Good(event='1')=&numvarname
&charvarname ;
grow entropy;
prune costcomplexity(leaves=5);
run;

 

And the log shows the plot was generated, but somehow it wasn't displayed..

NOTE: The HPSPLIT procedure is executing in single-machine mode.
NOTE: Cross-validating using 5 folds.

Output Added:
-------------
Name: PerformanceInfo
Label: Performance Information
Template: HPA.Common.PerfInfo
Path: HPSplit.PerformanceInfo
-------------

Output Added:
-------------
Name: DataAccessInfo
Label: Data Access Information
Template: HPA.Common.DataAccessInfo
Path: HPSplit.DataAccessInfo
-------------
NOTE: PROC HPSPLIT is modeling the event GOOD=1 for sensitivity, specificity,
AUC, and ROC curve calculations.

Output Added:
-------------
Name: ModelInfo
Label: Model Information
Template: HPStat.HPSplit.ModelInfo
Path: HPSplit.ModelInfo
-------------

Output Added:
-------------
Name: NObs
Label: Observation Information
Template: HPStat.HPSplit.NObs
Path: HPSplit.NObs
-------------

Output Added:
-------------
Name: CrossValidatedModel
Label: Parameter Assessment
Template: HPStat.HPSplit.SingleNLeavesCrossValidationNominal
Path: HPSplit.CrossValidation.CrossValidatedModel
-------------

Output Added:
-------------
Name: CVModelConfusionMatrix
Label: Confusion Matrix
Template: HPStat.HPSplit.CVConfusionMatrix
Path: HPSplit.CrossValidation.CVModelConfusionMatrix
-------------

Output Added:
-------------
Name: WholeTreePlot
Label: Overview
Template: HPStat.HPSplit.Graphics.WholeClassificationTreePlot
Path: HPSplit.TreePlots.WholeTreePlot
-------------

Output Added:
-------------
Name: ZoomedTreePlot
Label: Subtree, Starting at Node=0
Template: HPStat.HPSplit.Graphics.ZoomedClassificationTreePlot
Path: HPSplit.TreePlots.ZoomedTreePlot
-------------

Output Added:
-------------
Name: ConfusionMatrix
Label: Confusion Matrices
Template: HPStat.HPSplit.ConfusionMatrix
Path: HPSplit.ModelAssessment.ConfusionMatrix
-------------

Output Added:
-------------
Name: TreePerformance
Label: Fit Statistics
Template: HPStat.HPSplit.TreePerformance
Path: HPSplit.ModelAssessment.TreePerformance
-------------

Output Added:
-------------
Name: ROCPlot
Label: ROC Plot
Template: HPStat.HPSplit.Graphics.ROCPlot
Path: HPSplit.ModelAssessment.ROCPlot
-------------

Output Added:
-------------
Name: NodeTable
Label: Node Information
Template: HPStat.HPSplit.ClassificationNodeTable
Path: HPSplit.ModelAssessment.NodeTable
-------------

Output Added:
-------------
Name: VarImportance
Label: Variable Importance
Template: HPStat.HPSplit.VarImportance
Path: HPSplit.ModelAssessment.VarImportance
-------------
NOTE: There were 744 observations read from the data set SAVE.TREEDATA.
NOTE: PROCEDURE HPSPLIT used (Total process time):
real time 1.30 seconds
cpu time 1.50 seconds

 

Below are the software version info:

 

For Base SAS Software ...
Custom version information: 9.4_M5
Image version information: 9.04.01M5P090617
For SAS/STAT ...
Custom version information: 14.3
For SAS/GRAPH ...
Custom version information: 9.4_M5
For High Performance Suite ...
Custom version information: 2.2_M6
NOTE: PROCEDURE PRODUCT_STATUS used (Total process time):
real time 0.04 seconds
cpu time 0.01 seconds

 

 

Thanks a lot for your help!

 

 


Accepted Solutions
Solution
‎06-28-2018 11:03 AM
SAS Super FREQ
Posts: 508

Re: PROC HPSplit does not display graphs when ods graphics on in SAS 9.4

Posted in reply to maplepine

Enable a destination such as HTML that displays plots or look for the png files that are generated in your working directory.  Enabling a destination such as HTML or RTF is preferable.

 

 

View solution in original post


All Replies
Solution
‎06-28-2018 11:03 AM
SAS Super FREQ
Posts: 508

Re: PROC HPSplit does not display graphs when ods graphics on in SAS 9.4

Posted in reply to maplepine

Enable a destination such as HTML that displays plots or look for the png files that are generated in your working directory.  Enabling a destination such as HTML or RTF is preferable.

 

 

New Contributor
Posts: 2

Re: PROC HPSplit does not display graphs when ods graphics on in SAS 9.4

Posted in reply to WarrenKuhfeld

Thanks Warren! I found the graphs! First time using graphics utility in SAS, I thought it will just show in the output window...Thanks a lot!

 

SAS Super FREQ
Posts: 508

Re: PROC HPSplit does not display graphs when ods graphics on in SAS 9.4

Posted in reply to maplepine

You are welcome!  They do in fact "just show up" when you run SAS in certain ways, but not in other ways.  There are many ways to run SAS.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 165 views
  • 0 likes
  • 2 in conversation