Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5840637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:46:37+00:00 2026-05-22T11:46:37+00:00

I was playing around with weka when I observed a minNum field in the

  • 0

I was playing around with weka when I observed a minNum field in the RandomTree configuration. I read the description which said “The minimum total weight of the instances in a leaf”.
However, I couldn’t really understand what it means.

I played around with that number, and I realized that when I increase it, the size of the tree thus generated reduces. I couldn’t correlate as to why this is happening.

Any help/references will be appreciated.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:46:38+00:00Added an answer on May 22, 2026 at 11:46 am

    This has to do with the minimum number of instances on a leaf node (which is often 2 by default in decision trees, like J48). The higher you set this parameter, the more general the tree will be since having many leaves with a low number of instances yields a too granular tree structure.

    Here are two examples on the iris dataset, which shows how the -M option might affect size of the resulting tree:

    $ weka weka.classifiers.trees.RandomTree -t iris.arff -i
    
    petallength < 2.45 : Iris-setosa (50/0)
    petallength >= 2.45
    |   petalwidth < 1.75
    |   |   petallength < 4.95
    |   |   |   petalwidth < 1.65 : Iris-versicolor (47/0)
    |   |   |   petalwidth >= 1.65 : Iris-virginica (1/0)
    |   |   petallength >= 4.95
    |   |   |   petalwidth < 1.55 : Iris-virginica (3/0)
    |   |   |   petalwidth >= 1.55
    |   |   |   |   sepallength < 6.95 : Iris-versicolor (2/0)
    |   |   |   |   sepallength >= 6.95 : Iris-virginica (1/0)
    |   petalwidth >= 1.75
    |   |   petallength < 4.85
    |   |   |   sepallength < 5.95 : Iris-versicolor (1/0)
    |   |   |   sepallength >= 5.95 : Iris-virginica (2/0)
    |   |   petallength >= 4.85 : Iris-virginica (43/0)
    
    Size of the tree : 17
    
    $ weka weka.classifiers.trees.RandomTree -M 6 -t iris.arff -i
    
    petallength < 2.45 : Iris-setosa (50/0)
    petallength >= 2.45
    |   petalwidth < 1.75
    |   |   petallength < 4.95
    |   |   |   petalwidth < 1.65 : Iris-versicolor (47/0)
    |   |   |   petalwidth >= 1.65 : Iris-virginica (1/0)
    |   |   petallength >= 4.95 : Iris-virginica (6/2)
    |   petalwidth >= 1.75
    |   |   petallength < 4.85 : Iris-virginica (3/1)
    |   |   petallength >= 4.85 : Iris-virginica (43/0)
    
    Size of the tree : 11
    

    As a sidenote, Random trees rely on bagging, which means there’s a subsampling of attributes (K randomly chosen to split at each node); contrary to REPTree, however, there’s no pruning (like in RandomForest), so you may end up with very noisy trees.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just playing around with interfaces and I have a question about something which I
Been playing around some with iCanHaz.js templates which i define in the head of
Playing around with Python - tkInter - Entry widget - when I use validatecommand
Playing around with MongoDB and NoRM in .NET. Thing that confused me - there
Just playing around with Wordpress / Contact Form 7 . Is it possible to
been playing around with ResolveClientUrl(~/Confirmation.aspx) and other methods.. I am tryin go get the
I playing around with the Twitter API for my BlackBerry application. Is there any
After playing around with haskell a bit I stumbled over this function: Prelude Data.Maclaurin>
Been playing around with this for a couple of hours and can't seem to
Was playing around a little bit with the TimeSpan class and I started wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.