{"id":15469259,"url":"https://github.com/maxhalford/xgp","last_synced_at":"2025-12-15T18:54:07.170Z","repository":{"id":38051002,"uuid":"97828068","full_name":"MaxHalford/xgp","owner":"MaxHalford","description":":crystal_ball: Symbolic regression library","archived":false,"fork":false,"pushed_at":"2018-09-11T12:14:31.000Z","size":2383,"stargazers_count":61,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-13T21:11:22.485Z","etag":null,"topics":["classification","evolutionary-algorithms","genetic-programming","go","machine-learning","regression","symbolic-regression"],"latest_commit_sha":null,"homepage":"https://maxhalford.github.io/xgp/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaxHalford.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-20T11:34:33.000Z","updated_at":"2024-08-03T23:54:10.000Z","dependencies_parsed_at":"2022-09-26T20:02:11.079Z","dependency_job_id":null,"html_url":"https://github.com/MaxHalford/xgp","commit_stats":null,"previous_names":["maxhalford/koza"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxHalford%2Fxgp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxHalford%2Fxgp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxHalford%2Fxgp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxHalford%2Fxgp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxHalford","download_url":"https://codeload.github.com/MaxHalford/xgp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246313882,"owners_count":20757449,"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":["classification","evolutionary-algorithms","genetic-programming","go","machine-learning","regression","symbolic-regression"],"created_at":"2024-10-02T01:58:14.195Z","updated_at":"2025-12-15T18:54:07.090Z","avatar_url":"https://github.com/MaxHalford.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n  \u003c!-- Logo --\u003e\n  \u003cimg src=\"https://docs.google.com/drawings/d/e/2PACX-1vSLdt85rEf3SQUBkpuWfXOclyUY7rdZ7RBoTuNIyCc3-liSpurbL3i7QfrzWBFr2LfwTfoAf_1i4Qwe/pub?w=378\u0026h=223\"/\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- Documentation --\u003e\n  \u003ca href=\"https://maxhalford.github.io/xgp\"\u003e\n    \u003cimg src=\"https://img.shields.io/website-up-down-green-red/http/shields.io.svg?label=documentation\" alt=\"documentation\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- godoc --\u003e\n  \u003ca href=\"https://godoc.org/github.com/MaxHalford/xgp\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square\" alt=\"godoc\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Build status --\u003e\n  \u003ca href=\"https://travis-ci.org/MaxHalford/xgp\"\u003e\n    \u003cimg src=\"https://img.shields.io/travis/MaxHalford/eaopt/master.svg?style=flat-square\" alt=\"build_status\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- Coverage status --\u003e\n  \u003ca href=\"https://coveralls.io/github/MaxHalford/xgp?branch=master\"\u003e\n    \u003cimg src=\"https://coveralls.io/repos/github/MaxHalford/xgp/badge.svg?branch=master\u0026style=flat-square\" alt=\"coverage_status\" /\u003e\n  \u003c/a\u003e\n  \u003c!-- License --\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"http://img.shields.io/:license-mit-ff69b4.svg?style=flat-square\" alt=\"license\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\nXGP is a machine learning library for performing [symbolic regression](https://www.wikiwand.com/en/Symbolic_regression). It can be used both for regression and classification tasks. Please refer to [the documentation](https://maxhalford.github.io/xgp) for an in-depth introduction to symbolic regression.\n\n## Interfaces\n\nThe core library is written in Go but it can be used in different ways:\n\n- [Command-line interface (CLI)](https://maxhalford.github.io/xgp/cli/)\n- [Go API](https://maxhalford.github.io/xgp/go/)\n- [Python API](https://maxhalford.github.io/xgp/python/)\n\n## Usage examples\n\n### Command-line interface (CLI)\n\n```sh\n\u003e\u003e\u003e xgp fit train.csv\n\u003e\u003e\u003e xgp predict test.csv\n```\n\n### Go\n\n```go\npackage main\n\nimport \"github.com/MaxHalford/xgp\"\n\nfunc main() {\n    config := xgp.NewDefaultGPConfig()\n    estimator := config.NewGP()\n\n    estimator.Fit(XTrain, YTrain)\n    yPred := estimator.Predict()\n}\n```\n\n### Python\n\n```python\nimport xgp\n\nmodel = xgp.XGPRegressor()\n\nmodel.fit(X_train, y_train)\ny_pred = model.predict(X_test)\n```\n\n## Dependencies\n\nThe core of XGP has the following dependencies.\n\n- [gonum/gonum](https://github.com/gonum/gonum) for [SIMD operations](https://www.wikiwand.com/en/SIMD) and calculating metrics\n- [gosuri/uiprogress](https://github.com/gosuri/uiprogress) for displaying progress bars\n- [MaxHalford/eaopt](https://github.com/MaxHalford/eaopt) for the genetic algorithm part\n\n## License\n\nThe MIT License (MIT). Please see the [LICENSE file](LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhalford%2Fxgp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxhalford%2Fxgp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhalford%2Fxgp/lists"}