评分卡模型预测变量测试
在构建评分卡之前,可以尝试使用神经网络、决策树和随机森林对目标变量和解释变量进行建模,构建一个复杂的模型作为参考。
决策树
ods graphics on;
proc hpsplit data=RawDS seed=123 ASSIGNMISSING=BRANCH ;
class &_char_var. Target_Loan;
model Target_Loan (event='1') = &_char_var. &_num_var.;
grow entropy;
partition fraction(validate=0.3 seed=123);
prune costcomplexity(leaves=150);
performance nthreads=16;
/* code file='trescore.sas';*/
run;
ods graphics off;