스크립트를 사용하여 랜덤 포레스트의 열 기여 목록을 복사하는 방법은 무엇입니까?전문가 여러분, 감사합니다!
dt = Open( "$SAMPLE_DATA/Diabetes.jmp" );
p= dt << Bootstrap Forest(
Y( :Y ),
X(
:Age, :Gender, :BMI, :BP, :Total Cholesterol, :LDL, :HDL, :TCH,
:LTG, :Glucose
),
Validation( :Validation ),
Minimum Splits Per Tree( 5 ),
Portion Bootstrap( 1 ),
Number Terms( 3 ),
Number Trees( 25 ),
Go
);
p_report = p << Report;
tb = p_report << XPath("//OutlineBox[text()='列贡献']//TableBox");
일 없음

자동화 및 스크립팅답변: 스크립트를 사용하여 랜덤 포레스트의 열 기여 목록을 복사하는 방법은 무엇입니까?
Re: 스크립트를 사용하여 랜덤 포레스트의 열 기여 목록을 복사하는 방법은 무엇입니까?Make Into Data 테이블을 사용하여 해당 테이블에서 소스 스크립트를 가져와 필요에 따라 수정합니다.
Names Default To Here(1);
rpt = New Window("Diabetes - Bootstrap Forest of Y",
Data Table("Diabetes") << Bootstrap Forest(
Y(:Y),
X(
:Age, :Gender, :BMI, :BP, :Total Cholesterol, :LDL, :HDL, :TCH, :LTG,
:Glucose
),
Validation(:Validation),
Method("Bootstrap Forest"),
Column Contributions(1),
Minimum Splits per Tree(5),
Portion Bootstrap(1),
Number Terms(3),
Number Trees(25),
Go
)
);
Wait(0);
rpt["Bootstrap Forest for Y", "Column Contributions", Table Box(1)] <<
Make Into Data Table;
rpt << Close Window;
더 보기...
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Diabetes.jmp");
bsf = dt << Bootstrap Forest(
Y(:Y),
X(:Age, :Gender, :BMI, :BP, :Total Cholesterol, :LDL, :HDL, :TCH, :LTG, :Glucose),
Validation(:Validation),
Minimum Splits Per Tree(5),
Portion Bootstrap(1),
Number Terms(3),
Number Trees(25),
Column Contributions(1),
Go
);
Wait(0);
dt_res = Report(bsf)[Outline Box("Bootstrap Forest for ?"), Outline Box("Column Contributions"), Table Box(1)] << Make Into Data Table(Invisible);
m = dt_res[0, 0];
Close(dt_res, no save);
// could also
m = Report(bsf)[Outline Box("Bootstrap Forest for ?"), Outline Box("Column Contributions"), Table Box(1)] << get;
열만 필요한 경우 결과 목록에서 열만 빌드할 수 있습니다.
m = Report(bsf)[Outline Box("Bootstrap Forest for ?"), Outline Box("Column Contributions"), Table Box(1), StringColBox("Term")] << Copy Column;
Re: 스크립트를 사용하여 랜덤 포레스트의 열 기여 목록을 복사하는 방법은 무엇입니까?저는 아직 제 실제 데이터로는 성공하지 못했습니다.
dt=Current Data Table();for(i=5,i<=ncol(dt),i++,if(Column(i)<
<GET name="=" xx=""></GET>
<P><SPAN><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-06-21_16-23-00.png" style="width: 946px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="2025-06-21_16-23-00.png" style="width: 946px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="2025-06-21_16-23-00.png" style="width: 946px;"><span class="lia-inline-image-display-wrapper" image-alt="2025-06-21_16-23-00.png" style="width: 946px;"><img src="https://us.v-cdn.net/6038925/uploads/images/77144i26A8E679104F5A8A/2025-06-21_16-23-00.png" role="button" title="2025-06-21_16-23-00.png" alt="2025-06-21_16-23-00.png" /></span></SPAN></SPAN></SPAN></SPAN></P>
Re: 스크립트를 사용하여 랜덤 포레스트의 열 기여 목록을 복사하는 방법은 무엇입니까?저는 JMP의 중국어 버전을 사용하고 있지만, 이 코드를 실행하는 것은 가능합니다.
dt = Open( "$SAMPLE_DATA/Diabetes.jmp" );
cNa=dt<
<GET column="" names=""></GET>
Re: 스크립트를 사용하여 랜덤 포레스트의 열 기여 목록을 복사하는 방법은 무엇입니까?스크립트의 차이점을 알아차리셨나요?
더 보기...
나는 열 이름을 바꾸기 위해 의도적으로 와일드카드를 사용하고 있으므로 당신과 다른 개요 상자 이름을 사용하고 있습니다.
첫 번째 개요 상자 참조를 건너뛸 수도 있지만 그래도 작동해야 합니다.