/*---------------------------------------------------------------------- domains ----------------------------------------------------------------------*/ dom(petal_length) = IR; dom(petal_width) = IR; dom(iris_type) = { Iris-setosa, Iris-versicolor, Iris-virginica }; /*---------------------------------------------------------------------- decision tree ----------------------------------------------------------------------*/ drtree(iris_type) = { (petal_length|2.45) <:{ Iris-setosa: 50 }, >:{ (petal_width|1.75) <:{ Iris-versicolor: 49, Iris-virginica: 5 }, >:{ Iris-versicolor: 1, Iris-virginica: 45 }}}; /*---------------------------------------------------------------------- number of attributes: 3 decision tree height: 3 number of nodes : 5 number of tuples : 150 ----------------------------------------------------------------------*/