OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Decisiontree.jl

DecisionTree.jl is a Julia machine-learning library implementing CART decision trees and random forests for classification and regression.

Independent OpenViST project profile, based on linked sources.

Decisiontree.jl — Julia-based tree classification and regression
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Julia project needs CART or random-forest classification or regression, and the modeling workflow benefits from pruning, prediction or cross-validation.

Who it is for

  • Julia developers building tree-based classification models.
  • Practitioners fitting regression models to numerical targets.
  • Users who want pruning, forest models or cross-validation within a Julia workflow.

Documented uses

  • Fit a CART classifier to labeled feature data and use it to predict labels or class probabilities.
  • Build a random-forest classifier or regressor from an ensemble of trees.
  • Fit a decision-tree regressor for numerical targets.
  • Evaluate classification or regression models with n-fold cross-validation.
Before you choose

Requirements & limits

  • The package offers both a native API and a ScikitLearn.jl interface.
  • Classification supports ordered features encoded as real numbers or strings; regression supports numerical features.
  • Numerical targets represented as floating-point arrays imply regression.
  • ScikitLearn.jl is a separate dependency for the documented interface and its cross-validation workflow.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install DecisionTree.jl and load the package

Add the package with Julia’s package manager and import it in a Julia session.

Before you start

  • Julia and its package manager.

Steps

  1. Run Pkg.add("DecisionTree") in Julia.

  2. Load the package with using DecisionTree.

Expected outcome

The DecisionTree package is installed and imported in the Julia session.

Guide limitations

  • These steps cover installation and loading only, not training or evaluating a model.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 November 2026
Original website title
JuliaAI/DecisionTree.jl · Official homepage title · retained in its source language