{"id":15620725,"url":"https://github.com/akb89/matrixor","last_synced_at":"2025-03-29T15:43:57.455Z","repository":{"id":57440103,"uuid":"161931494","full_name":"akb89/matrixor","owner":"akb89","description":"Matrix transformation in Python","archived":false,"fork":false,"pushed_at":"2022-06-21T22:04:25.000Z","size":113,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T08:46:32.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/akb89.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":"2018-12-15T18:08:04.000Z","updated_at":"2020-08-24T08:05:02.000Z","dependencies_parsed_at":"2022-09-26T17:21:02.372Z","dependency_job_id":null,"html_url":"https://github.com/akb89/matrixor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fmatrixor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fmatrixor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fmatrixor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akb89%2Fmatrixor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akb89","download_url":"https://codeload.github.com/akb89/matrixor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246207491,"owners_count":20740723,"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":[],"created_at":"2024-10-03T09:02:17.405Z","updated_at":"2025-03-29T15:43:57.430Z","avatar_url":"https://github.com/akb89.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matrixor\n[![GitHub release][release-image]][release-url]\n[![PyPI release][pypi-image]][pypi-url]\n[![Build][build-image]][build-url]\n[![MIT License][license-image]][license-url]\n\n\n[release-image]:https://img.shields.io/github/release/akb89/matrixor.svg?style=flat-square\n[release-url]:https://github.com/akb89/matrixor/releases/latest\n[pypi-image]:https://img.shields.io/pypi/v/matrixor.svg?style=flat-square\n[pypi-url]:https://pypi.org/project/matrixor/\n[build-image]:https://img.shields.io/github/workflow/status/akb89/matrixor/CI?style=flat-square\n[build-url]:https://github.com/akb89/matrixor/actions?query=workflow%3ACI\n[license-image]:http://img.shields.io/badge/license-MIT-000000.svg?style=flat-square\n[license-url]:LICENSE.txt\n\nMatrix transformations in Python. Implements algorithm 2.4 (AO+Scaling) of the paper:\n\n```tex\n@article{devetal2018,\n    title={{Absolute Orientation for Word Embedding Alignment}},\n    author={Sunipa Dev and Safia Hassan and Jeff M. Phillips},\n    journal={CoRR},\n    year={2018},\n    volume={abs/1806.01330}\n}\n```\n\n## Install\n```shell\npip install matrixor\n```\n\nor, after a git clone:\n```shell\npython3 setup.py install\n```\n\n## Run\n\n### Align two models with Absolute Orientation + Scaling and return RMSE\nTo align two embeddings, run:\n```shell\nmatrixor align \\\n  --matrix-1 /abs/path/to/xxx.vec.npy  \\\n  --matrix-2 /abs/path/to/yyy.vec.npy \\\n```\npass in the `--average` to return the averaged RMSE by aligning A and B then B and A (alignment may not be symmetric due to floating point average)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakb89%2Fmatrixor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakb89%2Fmatrixor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakb89%2Fmatrixor/lists"}