attractivechaos / kann

A lightweight C library for artificial neural networks
Other
678 stars 117 forks source link

Exporting weights? #46

Closed GooseXP closed 3 years ago

GooseXP commented 3 years ago

I am hoping to train a KANN model with a genetic algorithm, but in order to do this I will need to be able to get an array of network weights, and I did not see a way of doing this in the documentation. I could be missing something obvious though.

attractivechaos commented 3 years ago

There is not an API for this. You can directly access kad_node_t::x. You can get the list of nodes from kann_t::v.

GooseXP commented 3 years ago

That will do fine thank you