OPF Fit Predict Test Page

This page uses the module Performance Test Module v6. In that link you can find more information about it and how to use this module.

1 from numpy import *
2 from iaOPF import *
3 
4 
5 #Instancia um objeto de testes
6 objTestes = PerfTest()

List of test values

 1 import courseIA368Q1S2012.Ex09 as ex
 2 from iaOPF import *
 3 
 4 tests = []
 5 
 6 test_set = ['Iris', [ex.iris_feats_train, ex.iris_labels_train, ex.iris_feats_test,ex.iris_labels_test, ex.euclidean]]
 7 tests.append(test_set)
 8 
 9 test_set = ['Digits', [ex.digi_feats_train, ex.digi_labels_train, ex.digi_feats_test, ex.digi_labels_test, ex.euclidean]]
10 tests.append(test_set)
11 
12 objTestes.addTests(tests)

Pages to get tests from

A list of namespaces + pages to get the tests results from

1 #List of namespaces + pages
2 listPaginas = []
3 listPaginas.append(['iaOPF','iafitpredict_rob'])
4 listPaginas.append(['iaOPF','iafitpred_fra'])
5 listPaginas.append(['iaOPF','iapredict_fer'])
6 listPaginas.append(['iaOPF','iafitpredict_wes'])
7 listPaginas.append(['iaOPF','iafitpredict_tia'])

Tests Summary

1 from iafitpred_test import*
2 
3 #Mostra o resultado
4 objTestes.showResults(listPaginas)
Autor Funcao Iris   Digits  
Roberto iafitpredict_rob 233.67 ms 0.96 44709.355 ms 0.992619926199
Francisco iafitpred_fra 873.369 ms 0.96 264042.953 ms 0.992619926199
Fernanda iafitpredict_fer 248.718 ms 0.96 27617.909 ms 0.992619926199
Wesley iafitpredict_wes 65.926 ms 0.973333333333 9572.779 ms 0.990774907749
Tiago iafitpredict_tia 704.393 ms 0.96 50468.585 ms 0.992619926199