timowest / flauta

GNU General Public License v2.0
7 stars 0 forks source link

Comparison #9

Closed dtiradob closed 13 years ago

dtiradob commented 13 years ago

hi, I made a python script who compare the outputs. I don't include receptivity. Maybe the average is not a very good idea for obtain the error, any sugestion is welcome.

please run the script like this: $ python comp.py

timowest commented 13 years ago

Great, I will try it out later.

timowest commented 13 years ago

I made a small change to the error function:

def error(outC, outF):
    error_out = [abs(outC[i]-outF[i]) for i in range(0, len(outC))]
    average_out = (sum(error_out)) / len(error_out)
    return average_out  

I believe the absolute error is better for summing than the signed one.

dtiradob commented 13 years ago

Good, maybe we can use the mean quadratic error adding the square root in the average. thanks for fixing the directory problem, i did that because is my first python script and I was very complicated with the coding.

timowest commented 13 years ago

I got all the errors down quite a lot. Blow and Receptivity are still to be tested.