{"id":13653413,"url":"https://github.com/dganguli/robust-pca","last_synced_at":"2025-08-24T16:10:33.655Z","repository":{"id":14665469,"uuid":"17384093","full_name":"dganguli/robust-pca","owner":"dganguli","description":"A simple Python implementation of R-PCA","archived":false,"fork":false,"pushed_at":"2023-05-19T22:03:55.000Z","size":10,"stargazers_count":240,"open_issues_count":4,"forks_count":71,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-20T05:03:48.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"valentinogagliardi/ansible-logstash","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dganguli.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}},"created_at":"2014-03-03T23:36:27.000Z","updated_at":"2025-05-15T21:22:56.000Z","dependencies_parsed_at":"2023-10-20T20:00:29.494Z","dependency_job_id":null,"html_url":"https://github.com/dganguli/robust-pca","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dganguli/robust-pca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dganguli%2Frobust-pca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dganguli%2Frobust-pca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dganguli%2Frobust-pca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dganguli%2Frobust-pca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dganguli","download_url":"https://codeload.github.com/dganguli/robust-pca/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dganguli%2Frobust-pca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271900779,"owners_count":24841114,"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-08-24T02:00:11.135Z","response_time":111,"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":[],"created_at":"2024-08-02T02:01:10.143Z","updated_at":"2025-08-24T16:10:33.613Z","avatar_url":"https://github.com/dganguli.png","language":"Python","readme":"Robust-PCA\n==========\n\nA Python implementation of R-PCA using principle component pursuit by alternating directions. The theory and implementation of the algorithm is described here: https://arxiv.org/pdf/0912.3599.pdf (doi \u003e 10.1145/1970392.1970395)\n\n```python\n# generate low rank synthetic data\nN = 100\nnum_groups = 3\nnum_values_per_group = 40\np_missing = 0.2\n\nDs = []\nfor k in range(num_groups):\n    d = np.ones((N, num_values_per_group)) * (k + 1) * 10\n    Ds.append(d)\n\nD = np.hstack(Ds)\n\n# decimate 20% of data \nn1, n2 = D.shape\nS = np.random.rand(n1, n2)\nD[S \u003c 0.2] = 0\n\n# use R_pca to estimate the degraded data as L + S, where L is low rank, and S is sparse\nrpca = R_pca(D)\nL, S = rpca.fit(max_iter=10000, iter_print=100)\n\n# visually inspect results (requires matplotlib)\nrpca.plot_fit()\nplt.show()\n```\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdganguli%2Frobust-pca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdganguli%2Frobust-pca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdganguli%2Frobust-pca/lists"}