Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FANN Error 11: Unable to allocate memory

In the Python implementation of FANN, I got this error from

from pyfann import libfann
ann = libfann.neural_net()
ann.create_standard(4, 2, 8, 9, 1)
#FANN Error 11: Unable to allocate memory.

Any suggestion?

like image 210
d.putto Avatar asked Jul 04 '12 14:07

d.putto


1 Answers

There is a bug in create_standard and the other simple creates. The workaround is

ann.create_standard_array([2,8,9,1])

same for create_sparse and create_shortcut.

like image 69
Davoud Taghawi-Nejad Avatar answered Sep 19 '22 11:09

Davoud Taghawi-Nejad