Professional Documents
Culture Documents
INFORME
TEMA:
PRACTICA
CURSO:
LABORATORIO DE INTELIGENCIA ARTIFICIAL
DOCENTE:
ING. BORIS SOSA MAYDANA
PRESENTADO POR:
VELASQUEZ MAMANI WILMER
PUNO
COD130308
PER
2016
Para datos_2.arff
Para datos_3.arff
>> [porcent1,porcent2]=lee_weka('out_dat_1.txt')
porcent1 = 98.8333
porcent2 = 94.1667
>> [porcent1,porcent2]=lee_weka('out_dat_2.txt')
porcent1 = 99.3333
porcent2 = 95.8333
>> [porcent1,porcent2]=lee_weka('out_dat_3.txt')
porcent1 = 98.8333
porcent2 = 97.6667
>> cf=[0.005 0.010 0.025 0.050 0.10 0.15 0.20 0.25 0.30];
>> for i=1:9
orden1=sprintf('!java weka.classifiers.trees.J48 -t data/datos_1.arff -C %f >
out_dat1.txt',cf(i));
orden2=sprintf('!java weka.classifiers.trees.J48 -t data/datos_2.arff -C %f >
out_dat2.txt',cf(i));
orden3=sprintf('!java weka.classifiers.trees.J48 -t data/datos_3.arff -C %f >
out_dat3.txt',cf(i));
eval(orden1);
eval(orden2);
eval(orden3);
[p1(i),p2(i)]=lee_weka('out_dat1.txt');
[p3(i),p4(i)]=lee_weka('out_dat2.txt');
[p5(i),p6(i)]=lee_weka('out_dat3.txt');
end;
>> plot(p2,'r-o');
>> hold on
>> plot(p4,'g-d');
>> hold on
>> plot(p6,'b-*');
>> hold on
>> xlabel('umbral de confianza para la poda');
>> hold on
>> plot(p1,'r-o');
>> hold on
>> plot(p3,'g-d');
>> hold on
>> plot(p5,'b-*');
>> xlabel('umbral de confianza para la poda');
>> hold on
>> ylabel('numero de nodos de un arbol');
>> hold on
>> legend('datos_1','datos_2','datos_3');
>> hold on
>> title('Wilmer Velasquez Mamani');