{"id":26343978,"url":"https://github.com/benediktfesl/mfa_cplx","last_synced_at":"2025-10-06T09:57:04.558Z","repository":{"id":188985526,"uuid":"679780462","full_name":"benediktfesl/MFA_cplx","owner":"benediktfesl","description":"Python implementation of a complex-valued version of the expectation-maximization (EM) algorithm for fitting Mixture of Factor Analyzers (MFA). ","archived":false,"fork":false,"pushed_at":"2023-08-23T08:37:34.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-23T19:33:19.893Z","etag":null,"topics":["complex-valued-data","factor-analysis","gaussian-mixture-models","mixture-model","mixture-of-factor-analyzers"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benediktfesl.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,"zenodo":null}},"created_at":"2023-08-17T15:47:09.000Z","updated_at":"2024-03-05T15:12:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c056765-9f2f-4a7d-afb7-b883f17bd517","html_url":"https://github.com/benediktfesl/MFA_cplx","commit_stats":null,"previous_names":["benediktfesl/mfa_cplx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benediktfesl/MFA_cplx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benediktfesl%2FMFA_cplx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benediktfesl%2FMFA_cplx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benediktfesl%2FMFA_cplx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benediktfesl%2FMFA_cplx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benediktfesl","download_url":"https://codeload.github.com/benediktfesl/MFA_cplx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benediktfesl%2FMFA_cplx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278591264,"owners_count":26012028,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["complex-valued-data","factor-analysis","gaussian-mixture-models","mixture-model","mixture-of-factor-analyzers"],"created_at":"2025-03-16T05:19:49.529Z","updated_at":"2025-10-06T09:57:04.513Z","avatar_url":"https://github.com/benediktfesl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MFA_cplx\nPython implementation of a complex-valued version of the expectation-maximization (EM) algorithm for fitting Mixture of Factor Analyzers (MFA). \nSome parts of the implementation are based on the PYPI implementation from\nhttps://pypi.org/project/mofa/\nwith substantial speed-ups, new functionalities, and a complex-valued extension.\nThe EM algorithm maximizes the likelihood of a circularly symmetric Gaussian distribution.\n\n## Instructions\nThe main implementation is contained in `MFA_cplx.py` with the class `MFA_cplx`.\nThe file `MFA_cplx_example.py` provides useful examples of how to use the code.\n\n## Requirements\nThis code is written in *Python*. It uses the *numpy*, *scipy*, *sklearn*, and *time* packages. The code was tested with Python 3.7.\n\n## Methods of `MFA_cplx`\n- `fit(data)`: Fitting the MFA parameters to the provided complex-valued dataset of shape `(n_samples, n_dim)`.\n  \n- `predict_proba_max(data)`: Predict the labels for the data samples using trained model.\n\n- `predict_proba(X)`: Predict posterior probability of each component given the data.\n\n- `sample(n_samples)`: Generate random samples from the fitted MFA.\n\n\n## Research work\nThe results of the following work are based (in parts) on the complex-valued MFA implementation:\n- B. Fesl, N. Turan, and W. Utschick, “Low-Rank Structured MMSE Channel Estimation with Mixtures of Factor Analyzers,” in *57th Asilomar Conf. Signals, Syst., Comput.*, 2023.\n  https://arxiv.org/abs/2304.14809\n\n## Original License\nThe original code from https://pypi.org/project/mofa/ is covered by the following license:\n\n\u003e Copyright 2012 Ross Fadely, Daniel Foreman-Mackey, David W. Hogg, and\n\u003e contributors.\n\u003e\n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy of\n\u003e this software and associated documentation files (the \"Software\"), to deal in\n\u003e the Software without restriction, including without limitation the rights to\n\u003e use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n\u003e the Software, and to permit persons to whom the Software is furnished to do so,\n\u003e subject to the following conditions:\n\u003e\n\u003e The above copyright notice and this permission notice shall be included in all\n\u003e copies or substantial portions of the Software.\n\u003e\n\u003e **THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\u003e IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n\u003e FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n\u003e COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n\u003e IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n\u003e CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**\n\n## Licence of Contributions\nThe contributions and extensions are covered by the BSD 3-Clause License:\n\n\u003e BSD 3-Clause License\n\u003e\n\u003e Copyright (c) 2023 Benedikt Fesl.\n\u003e All rights reserved.\n\u003e\n\u003e Redistribution and use in source and binary forms, with or without\n\u003emodification, are permitted provided that the following conditions are met:\n\u003e\n\u003e * Redistributions of source code must retain the above copyright notice, this\n\u003e  list of conditions and the following disclaimer.\n\u003e\n\u003e * Redistributions in binary form must reproduce the above copyright notice,\n\u003e  this list of conditions and the following disclaimer in the documentation\n\u003e  and/or other materials provided with the distribution.\n\u003e\n\u003e * Neither the name of the copyright holder nor the names of its\n\u003e  contributors may be used to endorse or promote products derived from\n\u003e  this software without specific prior written permission.\n\u003e\n\u003e THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n\u003e AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n\u003e IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n\u003e DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\n\u003e FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n\u003e DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n\u003e SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\u003e CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n\u003e OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n\u003e OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenediktfesl%2Fmfa_cplx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenediktfesl%2Fmfa_cplx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenediktfesl%2Fmfa_cplx/lists"}