Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- JMP User Community
- :
- Discussions
- :
- How to do the same model with different parameters?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Created:
Aug 17, 2018 8:27 AM
| Last Modified: Aug 17, 2018 8:33 AM
(3415 views)

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 )
);
);
```

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

Jim

7 REPLIES 7

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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

Jim

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to do the same model with different parameters?

Thank you, I want to strengthen my study.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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 )} )

)

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 )} )

)

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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 )
)
);
```

Jim

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: How to do the same model with different parameters?

thank you!

Move this code forward, but it still doesn't work.

Move this code forward, but it still doesn't work.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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?

Jim

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

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!

thank you!

Article Labels

There are no labels assigned to this post.