I have a python 3.x program that is producing an error:
def main():
names = [\'Ava Fischer\', \'Bob White\', \'Chris Rich\', \'Danielle Porter\',
I had this problem when using ANN and PyBrain on function testOnData().
So, I solved this problem putting "//" instead "/" inside the index on backprop.py source code.
I changed:
print(('Max error:',
max(ponderatedErrors),
'Median error:',
sorted(ponderatedErrors)[len(errors) / 2])) # <-- Error area
To:
print(('Max error:',
max(ponderatedErrors),
'Median error:',
sorted(ponderatedErrors)[len(errors) // 2])) # <-- SOLVED. Truncated
I hope it will help you.