How to do the same model with different parameters?dear all
Now I repeat the Decision Tree model with JMP at different "Minimum Size Split" levels.Every time I just change "Minimum Size Split", how do I write this loop code?Thank you very much!
Let B have 5 different levels:10,8,5,3,2; This will take five decision trees.
dt = Open( "$SAMPLE_DATA/Boston Housing.jmp" );
n={10,8,5,3,2};
for ??
Partition(
Y( :mvalue ),
X( :crim, :zn, :indus, :chas, :nox, :rooms, :age, :distance, :radial, :tax, :pt, :b, :lstat ),
Validation Portion( 0.3 ),
Minimum Size Split( n ),
Split Best( 1000 )
);
);

Re: How to do the same model with different parameters?Well, this window only appears in the JSL operation process, which is ideal if can control its size, but its window size does not affect the operation.No more dealing with it.
thank you!Re: How to do the same model with different parameters?Just saying it does not work does not provide any information to help resolve the issue.
Are there errors in the log?
What is it not doing that you want it to do?
Re: How to do the same model with different parameters?thank you!
Move this code forward, but it still doesn't work.Re: How to do the same model with different parameters?Try this:
dt = Open( "$SAMPLE_DATA/Boston Housing.jmp" );
n = {10, 8, 5, 3, 2};
For( i = 1, i <= N Items( n ), i++,
Partition(
Y( :mvalue ),
X( :crim, :zn, :indus, :chas, :nox, :rooms, :age, :distance, :radial, :tax, :pt, :b, :lstat ),
SendToReport(
Dispatch( {}, "Partition Graph", FrameBox, {Frame Size( 400, 200 )} )
),
Validation Portion( 0.3 ),
Minimum Size Split( n[i] ),
Split Best( 1000 )
)
);Re: How to do the same model with different parameters?I continue to ask you how to control the size of the decision tree report window during the JSL code run.
I'll follow the code recorded by JMP and it doesn't seem to work,Thank you!:
SendToReport(
Dispatch( {}, "Partition Report", FrameBox, {Frame Size( 480, 200 )} )
)
Re: How to do the same model with different parameters?Thank you, I want to strengthen my study.Re: How to do the same model with different parameters?Here is the code.......this is all documented in the Scripting Guide
Help==Books==>Scripting Guide
or in the Scripting Index
Help==>Scripting Index
dt = Open( "$SAMPLE_DATA/Boston Housing.jmp" );
n = {10, 8, 5, 3, 2};
For( i = 1, i <= N Items( n ), i++,
Partition(
Y( :mvalue ),
X( :crim, :zn, :indus, :chas, :nox, :rooms, :age, :distance, :radial, :tax, :pt, :b, :lstat ),
Validation Portion( 0.3 ),
Minimum Size Split( n[i] ),
Split Best( 1000 )
)
);
I strongly suggest you read the Scripting Guide