{"id":23992933,"url":"https://github.com/rmardonesa/perceptron","last_synced_at":"2025-10-19T20:34:52.679Z","repository":{"id":160233426,"uuid":"596523823","full_name":"rmardonesa/perceptron","owner":"rmardonesa","description":"Elemental javascript perceptron","archived":false,"fork":false,"pushed_at":"2023-02-02T11:35:54.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T20:39:43.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmardonesa.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,"governance":null}},"created_at":"2023-02-02T11:24:18.000Z","updated_at":"2024-01-26T21:31:41.000Z","dependencies_parsed_at":"2023-05-18T19:15:50.991Z","dependency_job_id":null,"html_url":"https://github.com/rmardonesa/perceptron","commit_stats":null,"previous_names":["rmardonesa/perceptron"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmardonesa%2Fperceptron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmardonesa%2Fperceptron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmardonesa%2Fperceptron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmardonesa%2Fperceptron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmardonesa","download_url":"https://codeload.github.com/rmardonesa/perceptron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240614058,"owners_count":19829270,"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":"2025-01-07T20:38:26.758Z","updated_at":"2025-10-19T20:34:47.645Z","avatar_url":"https://github.com/rmardonesa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning about The Sigmoid Function\n\n## Elemental javascript perceptron\n\n\n![Gjl-t(x)](https://user-images.githubusercontent.com/89952475/216314168-1946b718-ebda-40f7-b1fe-ff4f1095f81f.svg)\n\n\n```\n  var neuro = function() {\n         \n        this._seed = 1;\n        this._threshold = 1;\n        this._bias = 1;\n        this._learnRate = 0.1;\n        this._weights = [];\n        this._neuralData = [];\n    };\n \n    neuro.prototype._random = function() {\n        var x = Math.sin(this._seed++) * 10000;\n        return x - Math.floor(x);\n    };\n \n    neuro.prototype._multiply = function (inputs) {\n        var result = 0;\n \n        for (var i = 0; i \u0026amp;lt; inputs.length; i++) {\n            result += inputs[i] * this._weights[i];\n        }\n \n        result += this._threshold * this._weights[this._weights.length - 1];\n \n        return result;\n    },\n \n    neuro.prototype._sigmoid = function(x) {\n        return 1 / (1 + Math.pow(Math.E, -x));\n    };\n  \n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmardonesa%2Fperceptron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmardonesa%2Fperceptron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmardonesa%2Fperceptron/lists"}