crystal-fann

crystal-fann provides Crystal language bindings for the FANN artificial neural network library.

github.com/NeuraLegion/crystal-fann
crystal-fann homepage screenshot

About crystal-fann

crystal-fann provides Crystal bindings for the FANN C library for artificial neural networks. It supports creating Standard and Cascade networks, randomizing weights, training on single samples or batched TrainData, and running networks on new inputs. It is installed as a shard dependency.

Networks must be closed when done to free allocated C memory. For function usage, the source points to the repository spec files and the FANN C library documentation.

Key features

  • Bind Crystal code to the FANN C library
  • Create standard networks with defined layer sizes
  • Create cascade networks without preset hidden layers
  • Randomize network weights within a specified range
  • Train on single samples or batched TrainData sets
  • Run network on input to get output
Best for: Crystal developers who want to use the FANN C library for neural network work.
Good for
  • Includes examples for Standard, batched, and Cascade training
  • Supports single-sample and batched training with configurable parameters
  • Installs as a Crystal shard dependency under MIT license
Watch out for
  • Networks must be manually closed to free allocated C memory
  • Users must consult spec files and external C library docs for functions

crystal-fann at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

crystal-fann alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

crystal-fann FAQ

How do I install crystal-fann?
Add crystal-fann with github: NeuraLegion/crystal-fann to the dependencies in your application's shard.yml.
Do I need to free memory after using a network?
Yes. Call close on the network when done to free allocated C memory.
Where is documentation for available functions?
Check the spec files in the repository and the FANN C library docs at http://libfann.github.io/fann/docs/files/fann-h.html.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing