Class

DecisionTree

:

root

: DecisionNode

evaluate

(answers: any) => string
static

learnFromExamples

(data: any[][], attributes: string[], outcomes: boolean[]) => DecisionTree

Computes a decision tree from example data

param data- Example data, a list of columns, where each column contains values for an attribute in attributes.

param attributes- The names of the columns.

param outcomes- The outcomes for each row.

kaplay logo

Components

Miscalenous