안녕, 모두들!
JSL을 사용하여 의사 결정 트리에서 기본 "최소 크기 분할"을 얻고 싶습니다.
감사합니다!

환경 설정의 최소 크기 분할이 선택 취소되어 있으면 내부적으로 ( "꺼짐") 옵션에 나타나는 기본값이 5 인 것 같습니다. 파티션에 대한 사용자의 플랫폼 환경 설정이 설정되어있는 경우, 변경되지 않는 한 설정 값은 응용 프로그램과 함께 표시되는 프롬프트 창에 사용됩니다.
사용자의 환경 설정을 원하지 않으면 Partition (Y (), X (), Platform Preferences (1) 무시)을 지정하십시오.
플랫폼 환경 설정을 무시하면 아래 스크립트를 수정하고 기본 최소 크기가 5라고 가정합니다.
다음은 사용자가 기본 설정 UI 또는 파티션 UI에서 환경 설정을 설정 한 경우 캡처하는 스크립트입니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Partition(
Y( :Species ),
X( :Sepal length, :Sepal width, :Petal length, :Petal width ),
Informative Missing( 1 ),
Minimum Size Split(3)
);
obj << split best(2);<BR /><BR />//since you are letting the user do this, grab the window and get the script
scrp = (obj << get script); //if the minimum split size was set, can parse it from the script.
for(i=1, i<=narg(scrp), i++,
_tt = Arg(scrp, i);
if(Head Name(_tt) == "Minimum Size Split",
_sz = Arg(_tt,1);
Break();
)
);
_ppsz= Arg(Arg(get platform preferences(Partition(Minimum Size Split)), 1), 1);
if(Arg(_ppsz,1) == 0 & Is Missing(_sz), _sz=5,
Arg(_ppsz,1) >0 & Is Missing(_sz), _sz=Arg(_ppsz,1)
);
show(_sz);