{"id":18137960,"url":"https://github.com/gorosgobe/decision-ex","last_synced_at":"2025-06-30T06:06:04.381Z","repository":{"id":87063104,"uuid":"114187042","full_name":"gorosgobe/decision-ex","owner":"gorosgobe","description":"My first attempt at Elixir, a basic implementation of decision trees. ","archived":false,"fork":false,"pushed_at":"2017-12-26T17:51:21.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-02T22:02:20.331Z","etag":null,"topics":["classification","classification-algorithm","classification-trees","decision-trees","elixir","elixir-lang","information-gain"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/gorosgobe.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}},"created_at":"2017-12-14T01:29:16.000Z","updated_at":"2020-01-30T17:43:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"d21fc7b1-ef88-4631-a007-1f59e0466d76","html_url":"https://github.com/gorosgobe/decision-ex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gorosgobe/decision-ex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorosgobe%2Fdecision-ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorosgobe%2Fdecision-ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorosgobe%2Fdecision-ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorosgobe%2Fdecision-ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gorosgobe","download_url":"https://codeload.github.com/gorosgobe/decision-ex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorosgobe%2Fdecision-ex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262720641,"owners_count":23353448,"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":["classification","classification-algorithm","classification-trees","decision-trees","elixir","elixir-lang","information-gain"],"created_at":"2024-11-01T15:07:49.580Z","updated_at":"2025-06-30T06:06:04.359Z","avatar_url":"https://github.com/gorosgobe.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# decision-ex\nMy first attempt at Elixir, a basic implementation of decision trees. \nImplementation based on the Decision Trees 2017 Haskell exam for first year Computing students at Imperial College London, course taught by Tony Field. \nSpec available at: https://www.doc.ic.ac.uk/~ajf/haskelltests/decisiontrees/spec.pdf\n\n# How to use\nUsing the Elixir interpreter:\n\n```elixir\n$ iex utils.exs \nErlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:false]\n\nInteractive Elixir (1.5.2) - press Ctrl+C to exit (type h() ENTER for help)\niex(1)\u003e c \"decisionTree.exs\"\n[DecisionTree]\niex(2)\u003e c \"attSelector.exs\" \n[AttSelector]\niex(3)\u003e c \"naiveAttSelector.exs\"\n[NaiveAttSelector]\niex(4)\u003e c \"informationGainSelector.exs\"\n[InformationGainSelector]\niex(5)\u003e DecisionTree.buildTree DecisionTree.fishingData, DecisionTree.result, InformationGainSelector\n{:node, \"outlook\",\n [{\"sunny\", \n   {:node, \"humidity\",\n    [{\"high\", {:leaf, \"bad\"}}, {\"normal\", {:leaf, \"good\"}}]}},\n  {\"overcast\", {:leaf, \"good\"}},\n  {\"rainy\",\n   {:node, \"wind\", [{\"windy\", {:leaf, \"bad\"}}, {\"calm\", {:leaf, \"good\"}}]}}]}\niex(6)\u003e DecisionTree.buildTree DecisionTree.fishingData, DecisionTree.result, NaiveAttSelector       \n{:node, \"outlook\",\n [{\"sunny\", \n   {:node, \"temp\",\n    [{\"hot\", {:leaf, \"bad\"}},\n     {\"mild\",\n      {:node, \"humidity\",\n       [{\"high\", {:leaf, \"bad\"}}, {\"normal\", {:leaf, \"good\"}}]}},\n     {\"cool\", {:leaf, \"good\"}}]}}, {\"overcast\", {:leaf, \"good\"}},\n  {\"rainy\",\n   {:node, \"temp\",\n    [{\"hot\", {:null}},\n     {\"mild\",\n      {:node, \"humidity\",\n       [{\"high\",\n         {:node, \"wind\",\n          [{\"windy\", {:leaf, \"bad\"}}, {\"calm\", {:leaf, \"good\"}}]}},\n        {\"normal\", {:leaf, \"good\"}}]}},\n     {\"cool\",\n      {:node, \"humidity\",\n       [{\"high\", {:null}},\n        {\"normal\", \n         {:node, \"wind\",\n          [{\"windy\", {:leaf, \"bad\"}}, {\"calm\", {:leaf, \"good\"}}]}}]}}]}}]}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorosgobe%2Fdecision-ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgorosgobe%2Fdecision-ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorosgobe%2Fdecision-ex/lists"}