{"id":21685869,"url":"https://github.com/sodascience/remode","last_synced_at":"2025-03-20T11:45:24.825Z","repository":{"id":244198950,"uuid":"791966693","full_name":"sodascience/remode","owner":"sodascience","description":"Finding modes in discrete distributions","archived":false,"fork":false,"pushed_at":"2024-07-03T20:19:16.000Z","size":590,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-25T12:09:35.380Z","etag":null,"topics":["modality","mode-detection","ordinal-data"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/sodascience.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-04-25T18:05:15.000Z","updated_at":"2024-07-03T13:14:50.000Z","dependencies_parsed_at":"2024-06-21T08:12:34.436Z","dependency_job_id":null,"html_url":"https://github.com/sodascience/remode","commit_stats":null,"previous_names":["sodascience/remode"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodascience%2Fremode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodascience%2Fremode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodascience%2Fremode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sodascience%2Fremode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sodascience","download_url":"https://codeload.github.com/sodascience/remode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244609357,"owners_count":20480779,"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":["modality","mode-detection","ordinal-data"],"created_at":"2024-11-25T16:23:28.075Z","updated_at":"2025-03-20T11:45:24.804Z","avatar_url":"https://github.com/sodascience.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReMoDe\n\n`ReMoDe` is a Python library designed for the robust detection of modes in data distributions. It uses statistical tests, including Fisher's exact test and binomial tests, to determine if a given maximum in a data distribution is a true local maximum.\n\n### Features\n- Mode Detection: Identifies all potential local maxima in the dataset.\n- Statistical Tests: Implements Fisher's exact test and binomial tests to validate modes.\n- Data Formatting: Converts raw data into histogram format for analysis.\n- Stability Analysis: Includes functionality to assess the stability of detected modes using jackknife resampling.\n- Visualization: Provides methods to plot the histogram of data along with identified modes.\n\n### Installation\n\n```bash\npip install git+https://git@github.com/sodascience/remode.git@main\n```\n\n### Usage\n\nHere is a simple example of how to use the ReMode library:\n\n```python\nfrom remode import ReMoDe\n\n# Sample data (histogram counts)\nxt_count = [8, 20, 5, 2, 6, 2, 30]\n\n# Create an instance of ReMoDe\ndetector = ReMoDe()\n\n# Fit model\nresults = detector.fit(xt_count)\n\n# Plot the results\ndetector.plot_maxima()\n\n# Perform stability analysis\nstability_info = detector.evaluate_stability(percentage_steps=50)\n\n```\n\n\n### Citation\n\nPlease cite the following paper\n```\nTo be added\n```\n\n### Contributing\n\nContributions are what make the open source community an amazing place\nto learn, inspire, and create. Any contributions you make are **greatly\nappreciated**.\n\nPlease refer to the\n[CONTRIBUTING](https://github.com/sodascience/remode/blob/main/CONTRIBUTING.md)\nfile for more information on issues and pull requests.\n\n\n### License\n\nThis project is licensed under the GNU GPLv3. This allows you to do almost anything they want with this project, except distributing closed source versions. \n\n\n## Contact\n\nThis project is a port of the R version of [`ReMoDe`](https://github.com/hvdmaas/remode). It is maintained by the [ODISSEI Social Data\nScience (SoDa)](https://odissei-data.nl/nl/soda/) team.\n\n\u003cimg src=\"soda_logo.png\" alt=\"SoDa logo\" width=\"250px\"/\u003e\n\nDo you have questions, suggestions, or remarks? File an issue in the issue\ntracker!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodascience%2Fremode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsodascience%2Fremode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsodascience%2Fremode/lists"}