{"id":20858965,"url":"https://github.com/patrulek/tinygp","last_synced_at":"2025-12-28T02:03:18.057Z","repository":{"id":143198834,"uuid":"462180423","full_name":"patrulek/tinygp","owner":"patrulek","description":"Tiny Genetic Programming in Golang","archived":false,"fork":false,"pushed_at":"2022-02-24T06:58:39.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T07:24:46.859Z","etag":null,"topics":["genetic","go","golang","programming","tinygp"],"latest_commit_sha":null,"homepage":"","language":"Go","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/patrulek.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-22T07:12:44.000Z","updated_at":"2023-04-10T01:45:26.000Z","dependencies_parsed_at":"2023-05-23T19:15:38.101Z","dependency_job_id":null,"html_url":"https://github.com/patrulek/tinygp","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/patrulek%2Ftinygp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrulek%2Ftinygp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrulek%2Ftinygp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrulek%2Ftinygp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrulek","download_url":"https://codeload.github.com/patrulek/tinygp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243230100,"owners_count":20257644,"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":["genetic","go","golang","programming","tinygp"],"created_at":"2024-11-18T04:48:15.168Z","updated_at":"2025-12-28T02:03:18.009Z","avatar_url":"https://github.com/patrulek.png","language":"Go","readme":"# Tiny Genetic Programming in Golang[^1]\n\nA minimalistic program implementing Koza-style (tree-based) genetic programming to solve a symbolic regression problem. \n\nIt is a basic (and fully functional) version, which produces textual output of the evolutionary progression and evolved trees.\n\n\n| Symbolic | Regression using GP  |\n|-------------:|:-------------| \n| Objective | Find an expression with one input (independent variable x), whose output equals the value of the quartic function  x\u003csup\u003e4\u003c/sup\u003e + x\u003csup\u003e3\u003c/sup\u003e + x\u003csup\u003e2\u003c/sup\u003e + x + 1 |\n| Function set | add, sub, mul |   \n| Terminal set | x, -2, -1, 0, 1, 2  |   \n| Fitness | Inverse mean absolute error over a dataset of 101 target values, normalized to [-1,1]\n| Paremeters | POP_SIZE (population size), MIN_DEPTH (minimal initial random tree depth), MAX_DEPTH (maximal initial random tree depth), GENERATIONS (maximal number of generations), TOURNAMENT_SIZE (size of tournament for tournament selection), XO_RATE (crossover rate), PROB_MUTATION (per-node mutation probability) |\n| Termination | Maximal number of generations reached or an individual with fitness = 1.0 found |\n\n[^1]: [Tiny Genetic Programming in Python](https://github.com/moshesipper/tiny_gp)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrulek%2Ftinygp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrulek%2Ftinygp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrulek%2Ftinygp/lists"}