{"id":13396371,"url":"https://github.com/mattcunningham/naive-apl","last_synced_at":"2026-02-15T15:56:52.317Z","repository":{"id":98477574,"uuid":"42401131","full_name":"mattcunningham/naive-apl","owner":"mattcunningham","description":"Naive Bayesian Classifier written in APL","archived":false,"fork":false,"pushed_at":"2018-01-21T16:37:11.000Z","size":3,"stargazers_count":22,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-07-31T18:17:10.639Z","etag":null,"topics":["api","bayes-classifier","bayesian","machine-learning"],"latest_commit_sha":null,"homepage":null,"language":"APL","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/mattcunningham.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}},"created_at":"2015-09-13T15:27:25.000Z","updated_at":"2024-03-03T18:21:36.000Z","dependencies_parsed_at":"2023-04-23T20:06:27.505Z","dependency_job_id":null,"html_url":"https://github.com/mattcunningham/naive-apl","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/mattcunningham%2Fnaive-apl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattcunningham%2Fnaive-apl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattcunningham%2Fnaive-apl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattcunningham%2Fnaive-apl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattcunningham","download_url":"https://codeload.github.com/mattcunningham/naive-apl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221421531,"owners_count":16817819,"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":["api","bayes-classifier","bayesian","machine-learning"],"created_at":"2024-07-30T18:00:48.168Z","updated_at":"2026-02-15T15:56:52.274Z","avatar_url":"https://github.com/mattcunningham.png","language":"APL","funding_links":[],"categories":["APL"],"sub_categories":["Tools","[Tools](#tools-1)"],"readme":"# Naive Bayesian Classifier in APL\n[![License MIT](https://img.shields.io/npm/l/express.svg)](http://opensource.org/licenses/MIT)\n© 2015-2016 Matthew Cunningham\n\n## About\nThis is a *simple* naive bayesian classifier to gain independent probabilistic assumptions on test input. The classifier requires precisely *2* groups with training data. This is just a fun side project I did over the weekend, but any contributions would be **fantastic**.\n\nThere are three files in this repository — each file works on its own:\n* *bayes.min.apl* - This is the completely minified version.\n* *bayes.apl* - This file isn't as obfuscated as the minified version, but it still follows conventional minified APL practices.\n* *bayes.full.apl* - Fully documented\n\n## Example\nThis example shows the classifier displaying the independent probabilistic assumptions on whether given text aligns with keywords of *two* different animals: *cat* or *dog*.\n\n    $ (\"meow purr hiss bad animal\" 0) (\"bark grr howl good animal\" 1) b \"I am an animal and I hiss\"\n    0.9999999995 4.999999994999999e¯10\n\n[Try out this example using ngn/apl's online interpreter.](http://ngn.github.io/apl/web/index.html#code=b%u2190%7B%u2206%u2190%u237A%u22C4a%u2190%7B%u2375%u2282%u2368%7E%u2375%u220A%27%20%27%7D%u22C4b%u2190%7B%u2375%2Cq%u2190%27%20%27%7D%u22C4%u03B7%u2190%7B%27%27%2Ca%u220Ab%A8%28%u2375%3D1%u2283%A8%u2206%29/0%u2283%A8%u2206%7D%u22C4d%u2190%7Bo%u2190%28%7B+/%28a%u220Ab%A80%u2283%A8%u2206%29%u220A%u2375%20%22%22%7D%A8a%u2375%29%u22C4%28%28%u2374%u03B7%u237A%29%F7%28%28%u2374%u03B7%200%29+%28%u2374%u03B7%201%29%29%29%D7%D7/%281E%AF10+%28%28%u237A%7B+/%A8%28%u237A%7B%28%u03B7%u237A%29%u220A%u2375%20%27%27%7D%A8%28a%u2375%29%29%7D%u2375%29%F7%28%u2374%u03B7%u237A%29%29%D7o%29%F7%281+o%29%7D%u22C4%280d%u2375%29%281d%u2375%29%F7%28%280d%u2375%29+%281d%u2375%29%29%7D%0A%28%22meow%20purr%20hiss%20bad%20animal%22%200%29%20%28%22bark%20grr%20howl%20good%20animal%22%201%29%20b%20%22I%20am%20an%20animal%20and%20I%20hiss%22)\n\nThe provided training data is the keywords and groups, with cat being the 0th index and dog being the 1st index. The test data consists of a string that contains keywords to align with a certain training group; in this example, cat is the classified group.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattcunningham%2Fnaive-apl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattcunningham%2Fnaive-apl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattcunningham%2Fnaive-apl/lists"}