예제 #1
0
print "[Type][Model]"
print "RMSE:", typeAndModelError
print "SD:", typeAndModelErrorSD
print "[Type]"
print "RMSE:", typeError
print "SD:", typeErrorSD
print "[Model]"
print "RMSE:", modelError
print "SD:", modelErrorSD

models = ["Free", "Fixed", "Rev", "Pris", "Latch"]
types = ["10000"]
typesF = [float(x) for x in types]

print
auxUtils.printTable(models, types, typeAndModelError, typeAndModelErrorSD)
print
auxUtils.printFlatTable(types, typeError, typeErrorSD)
print
auxUtils.printFlatTable(models, modelError, modelErrorSD)
print
#auxUtils.printTableNoSD(models,types,misClass)
print "Misclassification Error:"
auxUtils.printMisClassTable(models, types, misClass, misClassMT)
if (False):

    pyplot.scatter(typesF, typeError)
    pyplot.errorbar(typesF, typeError, yerr=typeErrorSD)
    pyplot.xlabel('Number of Particles')
    pyplot.ylabel('Error [m]')
print "RMSE:",typeAndModelError
print "SD:",typeAndModelErrorSD
print "[Type]"
print "RMSE:",typeError
print "SD:",typeErrorSD
print "[Model]"
print "RMSE:",modelError
print "SD:",modelErrorSD


models = ["Free","Fixed","Rev","Pris","Latch"]
types = ["10000"]
typesF = [float(x) for x in types]

print
auxUtils.printTable(models,types,typeAndModelError,typeAndModelErrorSD)
print
auxUtils.printFlatTable(types,typeError,typeErrorSD)
print
auxUtils.printFlatTable(models,modelError,modelErrorSD)
print
#auxUtils.printTableNoSD(models,types,misClass)        
print "Misclassification Error:"
auxUtils.printMisClassTable(models,types,misClass,misClassMT)
if(False):

    pyplot.scatter(typesF,typeError)
    pyplot.errorbar(typesF,typeError,yerr=typeErrorSD)
    pyplot.xlabel('Number of Particles')
    pyplot.ylabel('Error [m]')