Questions tagged [fann]

Fast Artificial Neural Network Library is a free open source neural network library, which implements multilayer artificial neural networks in C with support for both fully connected and sparsely connected networks.

  • Cross-platform execution in both fixed and floating point are supported.
  • Includes a framework for easy handling of training data sets.
  • Bindings to more than 20 programming languages are available.
  • Introduction article and a reference manual accompanies the library with examples and recommendations.
  • Several graphical user interfaces are also available for the library.
97 questions
1
vote
1 answer

MLP training: how to handle unknown feature value

Suppose we have a MLP to be trained with a set of feature vectors, such that some of those vectors contain unknown values. How should I handle that? Is the MLP capable of this? Suppose the training vectors are : (1.0, 3.4, unknown, 2.0), (3.1,…
neutrino
  • 2,297
  • 4
  • 20
  • 28
1
vote
3 answers

Fast Artificial Neural Network Library : FANN Error 10

I'm using the FANN lib and when I use the fann_train_on_file function on my training file I get the following error : FANN Error 10: Error reading info from train data file "/tmp/train.dat", line: 154. This is the concerned file :…
Juskie
  • 67
  • 1
  • 12
1
vote
1 answer

FANN incremental learning

I am now using FANN to do incremental learning. Would anyone let me know whether my program is wrong or not? Thank you. I have a data set to train. But in future I will get some new data set. I wanna incrementally train the current nn with the new…
1
vote
0 answers

Configuring ANN for face recognition

Before I ask my question, here's a brief summary of my project: I'm using OPENCV's built-in function to detect a face in a cam-feed. After that I'm processing the image which contains the face, i.e. converting it to grayscale, resizing it to 40X40…
MrLinjak
  • 65
  • 7
1
vote
0 answers

combining two neural networks into one

im trying to make a multithreaded extension to the FANN library. Because FANN is not threadsafe i will do this: divide the training set in N pieces (N is the number of CPUs) copy the ANN to N copies train each on his piece for 1 epoch combine the…
microo8
  • 3,568
  • 5
  • 37
  • 67
1
vote
0 answers

FANN under Python is acting strangely. Is this because I'm using it wrong, or because of the limitations of the tool?

I have a number of records where I am trying to predict one field based on other fields. I set up a FANN neural net under Python, with ~10 inputs, 100 hidden nodes, and 2 outputs. When I went to build the nets, with 1000+ records, they went down…
Christos Hayward
  • 5,777
  • 17
  • 58
  • 113
1
vote
1 answer

python3 how to define ctypes struct for return type from imported library

I'm trying to use ctypes to use fann (a neural network library written in C) in python3. Here is my abridged code so far: from ctypes import * cdll.LoadLibrary("/usr/local/lib/libdoublefann.dylib") fann =…
ilikeprogramming
  • 434
  • 6
  • 14
1
vote
0 answers

"Translating" the parameters of a saved FANN network

I am training a neural network using the FANN library and I find the library pretty impressive. The problem is that I when I tried to "export" (manually) the weights and the formation of the network so I could simulate it in Matlab something is…
1
vote
1 answer

libfann undefined symbol

I'm install libfunn on my Ubuntu 11.10 and when I run example from "example" directory I get error. Compile: gcc simple_train.c -o simple_train -lfann -lm when execute: ./simple_train Max epochs 500000. Desired error:…
Misha
  • 136
  • 1
  • 7
0
votes
1 answer

How to ignore specific inputs for some outputs?

I am trying to implement a neural network with "PHP wrapper for FANN" library. As inputs I have 10 sensors which return different float and integer values (for example, presence detector returns 1/0, light sensor returns 0-1000, temperature sensor…
BArtWell
  • 4,176
  • 10
  • 63
  • 106
0
votes
2 answers

FANN: Memory leak when training ANN using data read from multiple files

I have the following loop: for (int i = 1; i <= epochs; ++i) { for (std::vector::iterator it = batchFiles.begin(); it != batchFiles.end(); ++it) { struct fann_train_data *data =…
daedsidog
  • 1,732
  • 2
  • 17
  • 36
0
votes
1 answer

fann_set_bit_fail_limit() fails to actually set the bit fail limit, forcing me to manually edit the ANN file

struct fann *ann; ann = fann_create_standard(3, 600, 1200, 30); fann_set_activation_function_hidden(ann, FANN_SIGMOID); fann_set_activation_function_output(ann, FANN_SIGMOID); fann_set_bit_fail_limit(ann, 0.002); fann_save(ann, "ann.net"); Whenever…
daedsidog
  • 1,732
  • 2
  • 17
  • 36
0
votes
1 answer

ANN training progress resets every new training session using FANN

I have a standard neural network which I have trained for some time, but not until perfection. After the training session is complete, I save the network on disk. After some time I want to resume training the network from where it left. The problem…
daedsidog
  • 1,732
  • 2
  • 17
  • 36
0
votes
1 answer

Fix the seed of the FANN random generator - C

I found in the Fast Artificial Neural Network documentation that the seed function is fann_seed_rand() but I don't understand how it works. Calling it or not seems to do the same. How can I fix the seed? The main goal is for fann_shuffle_data() to…
VictorGalisson
  • 635
  • 9
  • 27
0
votes
2 answers

How to install FANN for PHP on Windows 10?

I followed these steps to install FANN on PHP but couldn't make it work : Add php_fann.dll to C:\xampp\php\ext Add doublefann.dll to C:\xampp\php In php.ini I added -> extension=php_fann.dll; In php.ini I set extension_dir =…
Nigar Jafar
  • 144
  • 2
  • 3
  • 12