{"id":19876750,"url":"https://github.com/lewuathe/n42","last_synced_at":"2025-05-02T12:30:24.258Z","repository":{"id":13507206,"uuid":"16198097","full_name":"Lewuathe/n42","owner":"Lewuathe","description":"Tiny Deep Learning module for Node.js","archived":false,"fork":false,"pushed_at":"2015-09-04T13:52:39.000Z","size":42793,"stargazers_count":68,"open_issues_count":0,"forks_count":13,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-12T14:30:57.248Z","etag":null,"topics":["deep-learning","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lewuathe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-24T07:37:04.000Z","updated_at":"2023-07-15T00:44:36.000Z","dependencies_parsed_at":"2022-07-08T05:58:55.855Z","dependency_job_id":null,"html_url":"https://github.com/Lewuathe/n42","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Fn42","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Fn42/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Fn42/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lewuathe%2Fn42/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lewuathe","download_url":"https://codeload.github.com/Lewuathe/n42/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224309356,"owners_count":17290172,"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":["deep-learning","javascript","nodejs"],"created_at":"2024-11-12T16:34:07.372Z","updated_at":"2024-11-12T16:34:09.377Z","avatar_url":"https://github.com/Lewuathe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"n42 [![Build Status](https://travis-ci.org/Lewuathe/n42.png?branch=master)](https://travis-ci.org/Lewuathe/n42)\n===\n\nn42 is the deep learning module for nodejs. \n\n## How to install\n\n    $ npm install n42\n\n## Getting started \n\n```js\nvar n42 = require('n42');\n    \n// input data\n// This is made of sylvester matrix\nvar input = $M([\n    [1.0, 1.0, 0.0, 0.0],\n    [1.0, 1.0, 0.2, 0.0],\n    [1.0, 0.9, 0.1, 0.0],\n    [0.0, 0.0, 0.0, 1.0],\n    [0.0, 0.0, 0.8, 1.0],\n    [0.0, 0.0, 1.0, 1.0]\n]);\n\n// label data\n// This is made of sylvester matrix\nvar label = $M([\n    [1.0, 0.0],\n    [1.0, 0.0],\n    [1.0, 0.0],\n    [0.0, 1.0],\n    [0.0, 1.0],\n    [0.0, 1.0]\n]);\n\nvar sda = new n42.SdA(input, label, 4, [3, 3], 2);\n\n// Training all hidden layers\nsda.pretrain(0.3, 0.01, 1000);\n\n// Tuning output layer which is composed of logistics regression\nsda.finetune(0.3, 50);\n\n// Test data\nvar data = $M([\n    [1.0, 1.0, 0.0, 0.0],\n    [0.0, 0.0, 1.0, 1.0]\n]);\n\nconsole.log(sda.predict(data));\n\n/**\n *   Predict answers\n *   [0.9999998973561728, 1.0264382721184357e-7] ~ [1.0, 0.0]\n *   [4.672230837774381e-28, 1]                  ~ [0.0, 1.0]  \n */\n \n```\n\n## Algorithms\n\n| Class | Implemented algorithm |\n|:-------|:----------|\n| NN | Neural Network |\n| LogisticsRegression | Logistics Regression |\n| SdA | Stacked denoised Autoencoder |\n| DBN | Deep Belief Nets |\n\n## API Docs\n\n[n42 API Doc](http://www.lewuathe.com/n42/apidocs/index.html)\n\n## LICENSE\n\nMIT License. Please see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewuathe%2Fn42","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewuathe%2Fn42","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewuathe%2Fn42/lists"}