{"id":22663915,"url":"https://github.com/zsteve/pcurvepy","last_synced_at":"2025-08-10T03:04:38.558Z","repository":{"id":57451333,"uuid":"250405812","full_name":"zsteve/pcurvepy","owner":"zsteve","description":"Principal curves implementation (Hastie '89) in Python","archived":false,"fork":false,"pushed_at":"2020-04-01T23:43:22.000Z","size":286,"stargazers_count":18,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-15T02:26:29.517Z","etag":null,"topics":["dataviz-tools","stats"],"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/zsteve.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-03-27T00:43:05.000Z","updated_at":"2025-01-07T19:23:22.000Z","dependencies_parsed_at":"2022-09-10T08:01:07.058Z","dependency_job_id":null,"html_url":"https://github.com/zsteve/pcurvepy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zsteve/pcurvepy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fpcurvepy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fpcurvepy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fpcurvepy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fpcurvepy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsteve","download_url":"https://codeload.github.com/zsteve/pcurvepy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsteve%2Fpcurvepy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269668187,"owners_count":24456495,"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-10T02:00:08.965Z","response_time":71,"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":["dataviz-tools","stats"],"created_at":"2024-12-09T12:45:31.326Z","updated_at":"2025-08-10T03:04:38.531Z","avatar_url":"https://github.com/zsteve.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pcurvepy\n### Principal curves implementation (Hastie '89) in Python\n\nInstallation:\n```\npip install pcurvepy\n```\n\nExample:\n```python\nimport pandas as pd\nimport matplotlib as mp\nimport matplotlib.pyplot as plt\nimport pcurve\n\ndata = pd.read_csv('test_data.csv')\nx = data.loc[:, ('X1', 'X2')].to_numpy()\n\n# transform data to have zero mean\nx = x - np.mean(x, 0)\nindex = np.arange(0, len(x))\n\np = pcurve.PrincipalCurve(k = 5)\np.fit(x)\n\nplt.scatter(x[:, 0], x[:, 1], alpha = 0.25, c = index)\nplt.plot(p.p[:, 0], p.p[:, 1], c = 'k')\n\n```\n\n![example](example.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsteve%2Fpcurvepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsteve%2Fpcurvepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsteve%2Fpcurvepy/lists"}