{"id":29195711,"url":"https://github.com/clugen/pyclugen","last_synced_at":"2025-10-12T03:05:46.630Z","repository":{"id":149510228,"uuid":"289556878","full_name":"clugen/pyclugen","owner":"clugen","description":"Multidimensional cluster generation in Python","archived":false,"fork":false,"pushed_at":"2025-07-01T19:34:55.000Z","size":21987,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T19:40:55.322Z","etag":null,"topics":["multidimensional-clusters","multidimensional-data","python","python-library","python3-library","synthetic-clusters","synthetic-data-generator","synthetic-dataset-generation"],"latest_commit_sha":null,"homepage":"https://clugen.github.io/pyclugen/","language":"Python","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/clugen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-22T19:52:09.000Z","updated_at":"2025-07-01T19:34:58.000Z","dependencies_parsed_at":"2024-01-23T12:27:10.844Z","dependency_job_id":"765a6b74-adfe-4ed2-a41a-58b719826803","html_url":"https://github.com/clugen/pyclugen","commit_stats":{"total_commits":258,"total_committers":3,"mean_commits":86.0,"dds":"0.015503875968992276","last_synced_commit":"49fcc577c353a920630755cd795cae641e88379e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/clugen/pyclugen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clugen%2Fpyclugen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clugen%2Fpyclugen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clugen%2Fpyclugen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clugen%2Fpyclugen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clugen","download_url":"https://codeload.github.com/clugen/pyclugen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clugen%2Fpyclugen/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263028750,"owners_count":23402351,"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":["multidimensional-clusters","multidimensional-data","python","python-library","python3-library","synthetic-clusters","synthetic-data-generator","synthetic-dataset-generation"],"created_at":"2025-07-02T05:05:35.591Z","updated_at":"2025-10-12T03:05:46.561Z","avatar_url":"https://github.com/clugen.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":["General-Purpose Machine Learning"],"readme":"[![Tests](https://github.com/clugen/pyclugen/actions/workflows/tests.yml/badge.svg)](https://github.com/clugen/pyclugen/actions/workflows/tests.yml)\n[![codecov](https://codecov.io/gh/clugen/pyclugen/branch/main/graph/badge.svg?token=3K5ZN35AJ5)](https://codecov.io/gh/clugen/pyclugen)\n[![docs](https://img.shields.io/badge/docs-click_here-blue.svg)](https://clugen.github.io/pyclugen/)\n[![PyPI](https://img.shields.io/pypi/v/pyclugen)](https://pypi.org/project/pyclugen/)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/pyclugen?color=blueviolet)\n[![MIT](https://img.shields.io/badge/license-MIT-yellowgreen.svg)](https://tldrlegal.com/license/mit-license)\n\n# pyclugen\n\n**pyclugen** is a Python implementation of the *clugen* algorithm for\ngenerating multidimensional clusters with arbitrary distributions. Each cluster\nis supported by a line segment, the position, orientation and length of which\nguide where the respective points are placed.\n\nSee the [documentation](https://clugen.github.io/pyclugen/) and\n[examples](https://clugen.github.io/pyclugen/generated/gallery/) for more\ndetails.\n\n## Installation\n\nInstall from PyPI:\n\n```sh\npip install --upgrade pip\npip install pyclugen\n```\n\nOr directly from GitHub:\n\n```text\npip install --upgrade pip\npip install git+https://github.com/clugen/pyclugen.git#egg=pyclugen\n```\n\n## Quick start\n\n```python\nfrom pyclugen import clugen\nimport matplotlib.pyplot as plt\n```\n\n```python\nout2 = clugen(2, 4, 400, [1, 0], 0.4, [50, 10], 20, 1, 2)\nplt.scatter(out2.points[:, 0], out2.points[:, 1], c=out2.clusters)\nplt.show()\n```\n\n![2D example.](https://github.com/clugen/.github/blob/main/images/example2d_python.png?raw=true)\n\n```python\nout3 = clugen(3, 5, 10000, [0.5, 0.5, 0.5], 0.2, [10, 10, 10], 10, 1, 2)\nfig = plt.figure()\nax = fig.add_subplot(projection=\"3d\")\nax.scatter(out3.points[:, 0], out3.points[:, 1], out3.points[:, 2], c=out3.clusters)\nplt.show()\n```\n\n![3D example.](https://github.com/clugen/.github/blob/main/images/example3d_python.png?raw=true)\n\n## See also\n\n* [CluGen.jl](https://github.com/clugen/CluGen.jl/), a Julia implementation of\n  the *clugen* algorithm.\n* [clugenr](https://github.com/clugen/clugenr/), an R implementation\n  of the *clugen* algorithm.\n* [MOCluGen](https://github.com/clugen/MOCluGen/), a MATLAB/Octave\n  implementation of the *clugen* algorithm.\n\n## Reference\n\nIf you use this software, please cite the following reference:\n\n* Fachada, N. \u0026 de Andrade, D. (2023). Generating multidimensional clusters\n  with support lines. *Knowledge-Based Systems*, 277, 110836.\n  \u003chttps://doi.org/10.1016/j.knosys.2023.110836\u003e\n  ([arXiv preprint](https://doi.org/10.48550/arXiv.2301.10327))\n\n## License\n\n[MIT License](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclugen%2Fpyclugen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclugen%2Fpyclugen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclugen%2Fpyclugen/lists"}