Function genann_write

Synopsis

#include <genann.h>

void genann_write(genann const *ann, FILE *out)

Description

Saves the ann.

Mentioned in

Source

Lines 396-403 in genann.c. Line 95 in genann.h.

void genann_write(genann const *ann, FILE *out) {
    fprintf(out, "%d %d %d %d", ann->inputs, ann->hidden_layers, ann->hidden, ann->outputs);

    int i;
    for (i = 0; i < ann->total_weights; ++i) {
        fprintf(out, " %.20e", ann->weight[i]);
    }
}





Add Discussion as Guest

Log in