DecisionTree is a Ruby library that implements decision tree learning with the ID3 information-gain algorithm. It can train models from discrete, continuous, or mixed attribute data. Continuous features are evaluated across possible split points to build threshold-based binary branches. Discrete models classify unique labels and can be rendered for visual inspection. The library supports inconsistent datasets, multiple or symbolic outputs, and fallback values when no branch matches an input. Its Ruleset trainer converts a tree into pruned rules using a held-out portion of the training data. A bagging trainer builds ten rulesets and combines their predictions through voting.

Features

  • ID3 learning for continuous and discrete datasets
  • Mixed continuous and categorical attributes
  • Graphviz tree visualization and PNG export
  • Rule generation and C4.5-style pruning
  • Ten-model bagging with prediction voting
  • Default predictions for unmatched inputs

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow Decision Tree

Decision Tree Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Decision Tree!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Libraries

Registered

2026-07-10