decisiontree

This package provides an implementation of an algorithm that creates a decision tree.

It provides the following features

Usage

To train a decision tree call the function create-classifier function. This function requires a list of training instances.

A training instance can be created by calling the macro define-instance. This macro requires the first argument to be the name of the class to which the instance belongs and the rest are list of attribute values.

The create-classifier returns the root node of the decision tree. This inturn is used by the classify function that classifies new instances.

Continuous values

Before passing a list of continous values to the create-classifier function the continous values need to be removed. As of now this is what the algorithm that I have written does.

This is done by the function generate-range-symbols. When trying to classify any new instance the continuous values need to be replaced, this is done by the function replace-continuous-values. This function requires the range list generated by the generate-range-symbols function, the instance and the attribute that is supposed to be continous

Todo

If there are any suggestions/bugs please mail me at reuben dot cornel at gmail dot com. Thank you!!!

Download ASDF package from http://rfcornel.freeshell.org/decisiontree-1.0.tar.gz


Artificial Intelligence

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively