{"id":19461554,"url":"https://github.com/maxreciprocate/dumbcoder","last_synced_at":"2025-02-25T12:43:11.898Z","repository":{"id":85658294,"uuid":"386760905","full_name":"maxreciprocate/dumbcoder","owner":"maxreciprocate","description":"Finding DSL for the data in the slowest way possible","archived":false,"fork":false,"pushed_at":"2021-08-16T19:31:38.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T02:46:07.702Z","etag":null,"topics":["program-induction"],"latest_commit_sha":null,"homepage":"","language":"Python","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/maxreciprocate.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}},"created_at":"2021-07-16T20:51:07.000Z","updated_at":"2022-09-06T20:08:23.000Z","dependencies_parsed_at":"2023-03-01T11:30:32.631Z","dependency_job_id":null,"html_url":"https://github.com/maxreciprocate/dumbcoder","commit_stats":null,"previous_names":["maxreciprocate/dumbcoder"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxreciprocate%2Fdumbcoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxreciprocate%2Fdumbcoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxreciprocate%2Fdumbcoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxreciprocate%2Fdumbcoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxreciprocate","download_url":"https://codeload.github.com/maxreciprocate/dumbcoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240672705,"owners_count":19838925,"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":["program-induction"],"created_at":"2024-11-10T17:42:47.828Z","updated_at":"2025-02-25T12:43:11.838Z","avatar_url":"https://github.com/maxreciprocate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a dumbed down version of the [dreamcoder](https://github.com/ellisk42/ec)\n\nFor demonstration let's induce a simple program for some string X using the set of expressions D\n```python\n\u003e\u003e\u003e X = '10001000100010001000'\n\u003e\u003e\u003e D = Deltas([\n    Delta('0', str),\n    Delta('1', str),\n    Delta(2, int),\n    Delta(3, int),\n    Delta(add, int, [int, int], repr='+'), # 2 + 3 = 5\n    Delta(mul, str, [str, int], repr='*'), # '0' * 2 = '00'\n    Delta(add, str, [str, str], repr='u'), # '1' + '0' = '10'\n])\n\u003e\u003e\u003e Z = ECD(X, D)\n\u003e\u003e\u003e Z[X]\n(* '1000' (+ 2 3))\n\u003e\u003e\u003e Z[X]()\n'10001000100010001000'\n```\n\nECD extends the starting DSL D with new expressions, in this case it invented a '1000' since there are a lot of these in X\n\n```python\n\u003e\u003e\u003e D['1000'].hiddentail\n(u '1' (* '0' 3))\n\u003e\u003e\u003e D['1000']()\n'1000'\n```\n\nECD stands for explore, compress and dream - three stages of the algorithm: finding X by probabilistically enumerating expressions from DSL, compressing found representations and then training recognition model using those for the next enumeration cycle.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxreciprocate%2Fdumbcoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxreciprocate%2Fdumbcoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxreciprocate%2Fdumbcoder/lists"}