{"id":23065831,"url":"https://github.com/ullaskunder3/javascript-ml","last_synced_at":"2025-04-03T08:49:07.425Z","repository":{"id":153852854,"uuid":"404254812","full_name":"ullaskunder3/javascript-ml","owner":"ullaskunder3","description":"Reverse Text Color Based on Background Color Automatically using brain.js brain.NeuralNetwork()","archived":false,"fork":false,"pushed_at":"2021-09-08T12:13:47.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T22:25:34.603Z","etag":null,"topics":["basic","brain","javascript","ml","training-data"],"latest_commit_sha":null,"homepage":"https://ullaskunder3.github.io/javascript-ml/","language":"HTML","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/ullaskunder3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-08T07:36:52.000Z","updated_at":"2022-01-29T07:00:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a35ac96-d7d9-47fa-9331-1a019fcedaf9","html_url":"https://github.com/ullaskunder3/javascript-ml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fjavascript-ml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fjavascript-ml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fjavascript-ml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ullaskunder3%2Fjavascript-ml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ullaskunder3","download_url":"https://codeload.github.com/ullaskunder3/javascript-ml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970337,"owners_count":20862508,"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":["basic","brain","javascript","ml","training-data"],"created_at":"2024-12-16T05:10:11.323Z","updated_at":"2025-04-03T08:49:07.412Z","avatar_url":"https://github.com/ullaskunder3.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Machine Leaning using Javascript\n\n## Brain.js\n\n```block\nBrain.js is a GPU accelerated library of neural networks written in JavaScript for browsers and Node.js. It is simple, fast and easy to use. It provides multiple neural network implementations as different neural nets can be trained to do different things well.\n```\n\n## Getting Started\n\nThere are multiple ways to use this library:\n\n- NPM\n`npm install --save brain.js`\n\n- CDN\n`\u003cscript src=\"//unpkg.com/brain.js\"\u003e\u003c/script\u003e`\n\nProject Preview [link 🤠](https://ullaskunder3.github.io/javascript-ml/)\n\n| Preview 2                         | Preview 2                       |\n|-----------------------------------|---------------------------------|\n|  ![preview1](./img/preview2.png)  | ![preview1](./img/preview1.png) |\n\n## Training\n\n- Feedforward neural network (brain.NeuralNetwork)\n\nOne of the tasks that used the basic .NeuralNetwork flow was checking probability. Training data with `height` and `weight`\n\n```task\n * pen = 13-14 cm, 8 grams =\u003e 1\n * \n * pencil = 14 - 15 cm, 6 gram =\u003e 0\n```\n\n```js\nnetwork.train([\n    {input: {height: 13, weight: 8}, output: {pen: 1} },\n    {input: {height: 13, weight: 6}, output: {pencil: 0} },\n    {input: {height: 14, weight: 8}, output: {pen: 1} },\n    {input: {height: 15, weight: 6}, output: {pencil: 0} },\n])\n\nconst result = network.run({height: 13, weight: 7})\n\nconsole.log(result);\n// { pen: 0.7718532681465149, pencil: 0.03233066201210022 }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fullaskunder3%2Fjavascript-ml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fullaskunder3%2Fjavascript-ml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fullaskunder3%2Fjavascript-ml/lists"}