% Char 'b' Example Driver

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

attributes(1).name = 'Euler';
attributes(1).values = [0,1,2,3,4];
attributes(1).include = 1;
attributes(2).name = 'A2';
attributes(2).values = [0,1];
attributes(2).include = 1;
attributes(3).name = 'A3';
attributes(3).values = [0,1];
attributes(3).include = 1;
attributes(4).name = 'A4';
attributes(4).values = [0,1];
attributes(4).include = 1;
attributes(5).name = 'A5';
attributes(5).values = [0,1];
attributes(5).include = 1;

char_X = load('char_X');
char_Y = load('char_Y');
[num_rows,num_cols] = size(char_X);

char_Y = char_Y==15;
ex = [char_X,ones(num_rows,1),char_Y];

num_nodes = 0;
nodes = [];

MA = AI_decision_tree_learning(ex, attributes, 1, 'AI_choose_gain');
[correct,precision,recall] = CS5300_DT_correct(nodes,char_X,char_Y)
