I have used procforest/hp procforest in 3 different ways and log of all three as under-you can check the attached sas script 1) 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC FOREST DATA=credit_data_transformed; 70 TARGET Default_Flag / LEVEL=BINARY; ______ 22 76 ERROR 22-322: Syntax error, expecting one of the following: INTERVAL, NOMINAL. ERROR 76-322: Syntax error, statement will be ignored. 71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History 73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; 74 NTREES=100; /* Number of trees */ ______ 180 75 SEED=12345; ____ 180 76 OOBPREDICT; __________ 180 77 OUTPUT OUT=rf_preds PREDICTED=RF_Pred_Prob; _________ 22 76 ERROR 180-322: Statement is not valid or it is used out of proper order. ERROR 22-322: Syntax error, expecting one of the following: ;, (, COPYVAR, COPYVARS, MODELID, ROLE. ERROR 76-322: Syntax error, statement will be ignored. 78 RUN; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE FOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 591.90k OS Memory 26020.00k Timestamp 03/27/2025 02:36:33 AM Step Count 158 Switch Count 0 Page Faults 0 Page Reclaims 49 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 0 79 80 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 2) 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model; ________ 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, BALANCE, CATBINS, CRITERION, DATA, EXHAUSTIVE, GRIDCLASSSIZE, GRIDCOPY, GRIDNODESIZE, IMPORTANCE, INBAGFRACTION, INBAGN, INTERVALBINS, LEAFFRACTION, LEAFSIZE, MAXDEPTH, MAXTREES, MINCATSIZE, MINUSEINSEARCH, MISSING, NODESIZE, PRESELECT, PROLE, PRUNEFRACTION, PRUNETHRESHOLD, SCOREPROLE, SECONDMISSING, SEED, SKIP_SEQ_ROWS, SPLITSIZE, VARS_TO_TRY. ERROR 202-322: The option or parameter is not recognized and will be ignored. 70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ WARNING: Ignoring second data set reference. 71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History 73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */ 74 75 /* Specify number of trees and random seed */ 76 NTREES=100; ______ 180 77 SEED=12345; ____ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 78 79 /* Optional: for scoring output */ 80 SCORE OUT=rf_preds; 81 RUN; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped. NOTE: PROCEDURE HPFOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 659.37k OS Memory 26020.00k Timestamp 03/27/2025 02:36:56 AM Step Count 164 Switch Count 0 Page Faults 0 Page Reclaims 48 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 16 3) 1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 68 69 PROC HPFOREST DATA=credit_data_transformed OUTMODEL=rf_model; ________ 22 202 ERROR 22-322: Syntax error, expecting one of the following: ;, (, ALPHA, BALANCE, CATBINS, CRITERION, DATA, EXHAUSTIVE, GRIDCLASSSIZE, GRIDCOPY, GRIDNODESIZE, IMPORTANCE, INBAGFRACTION, INBAGN, INTERVALBINS, LEAFFRACTION, LEAFSIZE, MAXDEPTH, MAXTREES, MINCATSIZE, MINUSEINSEARCH, MISSING, NODESIZE, PRESELECT, PROLE, PRUNEFRACTION, PRUNETHRESHOLD, SCOREPROLE, SECONDMISSING, SEED, SKIP_SEQ_ROWS, SPLITSIZE, VARS_TO_TRY. ERROR 202-322: The option or parameter is not recognized and will be ignored. 70 TARGET Default_Flag / LEVEL=BINARY; /* Specify the binary target */ WARNING: Ignoring second data set reference. 71 INPUT Log_Income Log_Loan_Amount Interest_Loan_Term 72 Interest_Rate Debt_to_Income_Ratio Delinquency_History 73 Credit_Score_High Credit_Score_Medium Age_Young Age_Middle / LEVEL=INTERVAL; /* Specify input variables */ 74 75 /* Number of trees, random seed, and model training */ 76 NTREES=100; /* Specify the number of trees */ ______ 180 77 SEED=12345; /* Set the random seed */ ____ 180 78 TRAINFRAC=0.7; /* Use 70% of the data for training */ _________ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 79 80 /* Store the predictions */ 81 SCORE OUT=rf_preds; 82 RUN; NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.RF_PREDS may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK.RF_PREDS was not replaced because this step was stopped. NOTE: PROCEDURE HPFOREST used (Total process time): real time 0.00 seconds user cpu time 0.00 seconds system cpu time 0.00 seconds memory 656.75k OS Memory 26020.00k Timestamp 03/27/2025 02:37:33 AM Step Count 170 Switch Count 0 Page Faults 0 Page Reclaims 48 Page Swaps 0 Voluntary Context Switches 0 Involuntary Context Switches 0 Block Input Operations 0 Block Output Operations 8 83 84 85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK; 95
... View more