{"id":17492684,"url":"https://github.com/norskregnesentral/skchange","last_synced_at":"2025-04-16T04:44:31.256Z","repository":{"id":210436548,"uuid":"724078047","full_name":"NorskRegnesentral/skchange","owner":"NorskRegnesentral","description":"skchange provides sktime-compatible change detection and changepoint-based anomaly detection algorithms","archived":false,"fork":false,"pushed_at":"2025-04-10T19:39:04.000Z","size":4819,"stargazers_count":27,"open_issues_count":8,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T19:52:21.686Z","etag":null,"topics":["anomaly-detection","change-detection","machine-learning","statistics","time-series-segmentation"],"latest_commit_sha":null,"homepage":"https://skchange.readthedocs.io","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/NorskRegnesentral.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}},"created_at":"2023-11-27T10:57:29.000Z","updated_at":"2025-04-10T13:10:47.000Z","dependencies_parsed_at":"2024-06-12T15:39:42.156Z","dependency_job_id":"6b30b082-103e-46df-9e89-8dc36c8db89c","html_url":"https://github.com/NorskRegnesentral/skchange","commit_stats":{"total_commits":487,"total_committers":3,"mean_commits":"162.33333333333334","dds":0.05544147843942504,"last_synced_commit":"93029534756726dccc30d7a8c3db732bf92d1b83"},"previous_names":["norskregnesentral/skchange"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorskRegnesentral%2Fskchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorskRegnesentral%2Fskchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorskRegnesentral%2Fskchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NorskRegnesentral%2Fskchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NorskRegnesentral","download_url":"https://codeload.github.com/NorskRegnesentral/skchange/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248774962,"owners_count":21159534,"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":["anomaly-detection","change-detection","machine-learning","statistics","time-series-segmentation"],"created_at":"2024-10-19T10:06:01.322Z","updated_at":"2025-04-16T04:44:31.250Z","avatar_url":"https://github.com/NorskRegnesentral.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# skchange\n\n[![codecov](https://codecov.io/gh/NorskRegnesentral/skchange/graph/badge.svg?token=QSS3AY45KY)](https://codecov.io/gh/NorskRegnesentral/skchange)\n[![tests](https://github.com/NorskRegnesentral/skchange/actions/workflows/tests.yaml/badge.svg)](https://github.com/NorskRegnesentral/skchange/actions/workflows/tests.yaml)\n[![docs](https://readthedocs.org/projects/skchange/badge/?version=latest)](https://skchange.readthedocs.io/en/latest/?badge=latest)\n[![BSD 3-clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/sktime/sktime/blob/main/LICENSE)\n[![!black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Python](https://img.shields.io/pypi/pyversions/skchange)](https://pypi.org/project/skchange/)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/skchange)\n\n\n[skchange]((https://skchange.readthedocs.io/en/latest/)) provides [sktime](https://www.sktime.net/)-compatible change detection and changepoint-based anomaly detection algorithms.\n\nExperimental but maturing.\n\n\u003c!-- ## Latest release --\u003e\n\nCheck out the latest version: [v0.12.0](https://github.com/NorskRegnesentral/skchange/releases)\n\n## Documentation\n\n* [Documentation](https://skchange.readthedocs.io/)\n* [Notebook tutorial](https://github.com/sktime/sktime-tutorial-pydata-global-2024)\n\n\n## Installation\nIt is recommended to install skchange with [numba](https://numba.readthedocs.io/en/stable/) for faster performance:\n```sh\npip install skchange[numba]\n```\n\nAlternatively, you can install skchange without numba:\n```sh\npip install skchange\n```\n\n## Quickstart\n\n### Changepoint detection / time series segmentation\n```python\nfrom skchange.change_detectors import MovingWindow\nfrom skchange.datasets import generate_alternating_data\n\ndf = generate_alternating_data(n_segments=10, segment_length=50, mean=5, random_state=1)\n\ndetector = MovingWindow(bandwidth=20)\ndetector.fit_predict(df)\n```\n```python\n   ilocs\n0     50\n1    100\n2    150\n3    200\n4    250\n5    300\n6    350\n7    400\n8    450\n```\n\n### Multivariate anomaly detection\n```python\nimport numpy as np\nfrom skchange.anomaly_detectors import MVCAPA\nfrom skchange.datasets import generate_anomalous_data\n\nn = 300\nanomalies = [(100, 120), (250, 300)]\nmeans = [[8.0, 0.0, 0.0], [2.0, 3.0, 5.0]]\ndf = generate_anomalous_data(n, anomalies, means, random_state=3)\n\ndetector = MVCAPA()\ndetector.fit_predict(df)\n```\n```python\n        ilocs  labels   icolumns\n0  [100, 120)       1        [0]\n1  [250, 300)       2  [2, 1, 0]\n```\n\n## License\n\nskchange is a free and open-source software licensed under the [BSD 3-clause license](https://github.com/NorskRegnesentral/skchange/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorskregnesentral%2Fskchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorskregnesentral%2Fskchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorskregnesentral%2Fskchange/lists"}