{"id":15631465,"url":"https://github.com/rlidwka/node-fann","last_synced_at":"2025-04-09T22:12:37.632Z","repository":{"id":57232751,"uuid":"2609949","full_name":"rlidwka/node-fann","owner":"rlidwka","description":"FANN (Fast Artificial Neural Network Library) bindings for Node.js","archived":false,"fork":false,"pushed_at":"2017-01-11T11:58:51.000Z","size":298,"stargazers_count":185,"open_issues_count":11,"forks_count":34,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-09T22:12:21.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rlidwka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-10-19T23:48:31.000Z","updated_at":"2024-10-06T17:50:08.000Z","dependencies_parsed_at":"2022-08-31T14:11:03.939Z","dependency_job_id":null,"html_url":"https://github.com/rlidwka/node-fann","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlidwka%2Fnode-fann","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlidwka%2Fnode-fann/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlidwka%2Fnode-fann/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlidwka%2Fnode-fann/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlidwka","download_url":"https://codeload.github.com/rlidwka/node-fann/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T10:40:33.728Z","updated_at":"2025-04-09T22:12:37.614Z","avatar_url":"https://github.com/rlidwka.png","language":"C++","funding_links":[],"categories":["Development","Javascript","JavaScript","[](https://github.com/josephmisiti/awesome-machine-learning/blob/master/README.md#javascript)Javascript"],"sub_categories":["Javascript","Tools","[Tools](#tools-1)","Speech Recognition"],"readme":"# node-fann\n\nnode-fann is a [FANN](http://leenissen.dk/fann/) bindings for [Node.js](http://nodejs.org).\n\nFANN (Fast Artificial Neural Network Library) is a free open source neural network library, which implements multilayer artificial neural networks with support for both fully connected and sparsely connected networks.\n\n## Installation\n\n1. Make sure you have `glib2` and `pkg-config` installed.\n\n   These are quite popular tools and should be available in your software repository/ports.\n\n2. You will need [FANN library](http://leenissen.dk/fann/wp/download/) version _\u003e= 2.1.0_ (libfann2).\n\n3. Run `npm install fann` to install this package.\n\n## Example\n\n```javascript\nvar fann = require('fann');\nvar net = new fann.standard(2,3,1);\n\nvar data = [\n    [[0, 0], [0]],\n    [[0, 1], [1]],\n    [[1, 0], [1]],\n    [[1, 1], [0]],\n];\n\nnet.train(data, {error: 0.00001});\n\nconsole.log(\"xor test (0,0) -\u003e \", net.run([0, 0]));\nconsole.log(\"xor test (1,0) -\u003e \", net.run([1, 0]));\nconsole.log(\"xor test (0,1) -\u003e \", net.run([0, 1]));\nconsole.log(\"xor test (1,1) -\u003e \", net.run([1, 1]));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlidwka%2Fnode-fann","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlidwka%2Fnode-fann","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlidwka%2Fnode-fann/lists"}