BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
maplepine
Calcite | Level 5

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!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenKuhfeld
Rhodochrosite | Level 12

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

3 REPLIES 3
WarrenKuhfeld
Rhodochrosite | Level 12

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.

 

 

maplepine
Calcite | Level 5

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!

 

WarrenKuhfeld
Rhodochrosite | Level 12

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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