{"id":26119234,"url":"https://github.com/scottroot/shannon-entropy","last_synced_at":"2025-09-14T05:22:24.849Z","repository":{"id":162474520,"uuid":"249496856","full_name":"scottroot/Shannon-Entropy","owner":"scottroot","description":"R script to calculate entropy and info gain","archived":false,"fork":false,"pushed_at":"2020-03-24T16:07:05.000Z","size":49,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T00:08:56.034Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottroot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-03-23T17:20:28.000Z","updated_at":"2022-04-22T13:13:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"63e8f89d-4b0e-482e-937d-715c0edf8d06","html_url":"https://github.com/scottroot/Shannon-Entropy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scottroot/Shannon-Entropy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottroot%2FShannon-Entropy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottroot%2FShannon-Entropy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottroot%2FShannon-Entropy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottroot%2FShannon-Entropy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottroot","download_url":"https://codeload.github.com/scottroot/Shannon-Entropy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottroot%2FShannon-Entropy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275062966,"owners_count":25398888,"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-09-14T02:00:10.474Z","response_time":75,"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":"2025-03-10T12:25:40.121Z","updated_at":"2025-09-14T05:22:24.838Z","avatar_url":"https://github.com/scottroot.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shannon-Entropy\nR script to calculate entropy and info gain\n\nUses the standard Shannon Entropy formula.\n\n![Shannon Entropy Formula](https://wikimedia.org/api/rest_v1/media/math/render/svg/5e17bf0bf0de728a9cae59fe63d10b12410311ae)\n\nAllows you to specify which variable in a dataset is to be the parent node, and then calculates the entropy of all other variables WRT that parent node.\n\n## Installation\n* library(devtools)\n* devtools::install_github('scottroot/shannon-entropy')\n\n## Usage\n* library(shannon-entropy)\n* ig(root, df, ignore)\n\n## Arguments\n* **root**      The parent root variable.\n\n* **df**        Your dataset or dataframe.\n\n* **ignore**    The variables or columns in your dataset that you don't want to include\n\n\n## Output\nA dataframe with all the variables' entropy and information gain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottroot%2Fshannon-entropy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottroot%2Fshannon-entropy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottroot%2Fshannon-entropy/lists"}