% Marsland Example Driver

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

attributes(1).name = 'Deadline';
attributes(1).values = [0,1,2];
attributes(1).include = 1;
attributes(2).name = 'Party';
attributes(2).values = [0,1];
attributes(2).include = 1;
attributes(3).name = 'Lazy';
attributes(3).values = [0,1];
attributes(3).include = 1;

ex = [ 
   2 1 1 1 0;
   2 0 1 1 1;
   1 1 1 1 0;
   0 1 0 1 0;
   0 0 1 1 2;
   0 1 0 1 0;
   1 0 0 1 1;
   1 0 1 1 3;
   1 1 1 1 0;
   2 0 0 1 1;
   ];
num_nodes = 0;
nodes = [];

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