% Digits Example Driver

global nodes num_nodes
num_nodes = 0;
nodes = [];

attributes(1).name = 'Euler';
attributes(1).values = [0,1,2];
attributes(1).include = 1;
attributes(2).name = 'NumEndpts';
attributes(2).values = [0,1,2,3,4];
attributes(2).include = 1;
attributes(3).name = 'AreaAbove';
attributes(3).values = [0,1];
attributes(3).include = 1;
attributes(3).name = 'EndptsUrLl';
attributes(3).values = [0,1];
attributes(3).include = 1;
attributes(3).name = 'EndptsUlLr';
attributes(3).values = [0,1];
attributes(3).include = 1;

ex = [ 
   1 0 0 0 0 1 0;
   0 2 0 0 0 1 1;
   0 2 0 0 1 1 2;
   0 3 0 0 0 1 3;
   0 4 1 0 0 1 4;
   0 2 0 1 0 1 5;
   1 1 0 0 0 1 6;
   0 2 1 0 0 1 7;
   2 0 0 0 0 1 8;
   1 1 1 0 0 1 9;
   ];
num_nodes = 0;
nodes = [];

MA = AI_decision_tree_learning(ex, attributes, 1, 'AI_choose_gain');
