{"id":25705220,"url":"https://github.com/aporia-ai/dmatrix2np","last_synced_at":"2025-04-30T09:46:49.052Z","repository":{"id":46268240,"uuid":"261793962","full_name":"aporia-ai/dmatrix2np","owner":"aporia-ai","description":"Convert XGBoost's DMatrix format to np.array","archived":false,"fork":false,"pushed_at":"2021-11-03T09:45:46.000Z","size":43,"stargazers_count":14,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-06T17:03:12.952Z","etag":null,"topics":["machine-learning","numpy","xgboost"],"latest_commit_sha":null,"homepage":"","language":"Python","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/aporia-ai.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}},"created_at":"2020-05-06T15:02:40.000Z","updated_at":"2022-07-03T14:24:20.000Z","dependencies_parsed_at":"2022-08-28T14:02:37.888Z","dependency_job_id":null,"html_url":"https://github.com/aporia-ai/dmatrix2np","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aporia-ai%2Fdmatrix2np","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aporia-ai%2Fdmatrix2np/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aporia-ai%2Fdmatrix2np/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aporia-ai%2Fdmatrix2np/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aporia-ai","download_url":"https://codeload.github.com/aporia-ai/dmatrix2np/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619367,"owners_count":19830202,"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":["machine-learning","numpy","xgboost"],"created_at":"2025-02-25T06:38:42.867Z","updated_at":"2025-02-25T06:38:43.470Z","avatar_url":"https://github.com/aporia-ai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dmatrix2np\n\n[![Tests](https://github.com/aporia-ai/dmatrix2np/workflows/Test/badge.svg)](https://github.com/aporia-ai/dmatrix2np/actions?workflow=Test) [![PyPI](https://img.shields.io/pypi/v/dmatrix2np.svg)](https://pypi.org/project/dmatrix2np/) [![Downloads](https://pepy.tech/badge/dmatrix2np)](https://pepy.tech/project/dmatrix2np)\n\nConvert XGBoost's DMatrix format to np.array.\n\n\u003cp align=\"center\"\u003eMade with :heart: by \u003ca href=\"https://www.aporia.com?utm_source=github\u0026utm_medium=github\u0026utm_campaign=dmatrix2np\" target=\"_blank\"\u003eAporia\u003c/a\u003e\u003c/p\u003e\n\n## Usage\n\nTo install the library, run:\n\n    pip install dmatrix2np\n\nThen, you can call in your code:\n\n    from dmatrix2np import dmatrix_to_numpy\n\n    converted_np_array = dmatrix_to_numpy(dmatrix)\n\n## Development\n\nWe use [poetry](https://python-poetry.org/) for development:\n\n    pip install poetry\n\nTo install all dependencies and run tests:\n\n    poetry run pytest\n    \nTo run tests on the entire matrix (Python 3.6, 3.7, 3.8, 3.9 + XGBoost 0.80, 0.90, 1.0, 1.1, 1.2, 1.3, 1.4):\n    \n    pip install tox\n    tox\n\n### The Research Behind\n\nIn the flowing blog post we describe the research that has been done to understand the DMatrix format and creating this library:\n[DMatrix to Numpy Research](https://www.aporia.com/how-to-convert-dmatrix-to-numpy-format-for-your-machine-learning-model-3/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faporia-ai%2Fdmatrix2np","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faporia-ai%2Fdmatrix2np","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faporia-ai%2Fdmatrix2np/lists"}