{"id":17218313,"url":"https://github.com/pbiecek/xai-happiness","last_synced_at":"2025-03-25T14:25:00.897Z","repository":{"id":70774872,"uuid":"303490163","full_name":"pbiecek/xai-happiness","owner":"pbiecek","description":"XAI use case based on world-happiness data","archived":false,"fork":false,"pushed_at":"2020-10-15T14:24:39.000Z","size":4883,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T13:15:16.722Z","etag":null,"topics":["happiness","modelstudio","xai"],"latest_commit_sha":null,"homepage":"https://pbiecek.github.io/xai-happiness/","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/pbiecek.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":"2020-10-12T19:16:07.000Z","updated_at":"2020-10-17T11:11:26.000Z","dependencies_parsed_at":"2023-03-13T20:23:05.070Z","dependency_job_id":null,"html_url":"https://github.com/pbiecek/xai-happiness","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbiecek%2Fxai-happiness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbiecek%2Fxai-happiness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbiecek%2Fxai-happiness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbiecek%2Fxai-happiness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbiecek","download_url":"https://codeload.github.com/pbiecek/xai-happiness/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245478092,"owners_count":20621934,"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":["happiness","modelstudio","xai"],"created_at":"2024-10-15T03:46:12.273Z","updated_at":"2025-03-25T14:25:00.874Z","avatar_url":"https://github.com/pbiecek.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xai-happiness\n\nXAI use case based on world-happiness data.\n\nFind a live demo: https://pbiecek.github.io/xai-happiness/\n\n![modelStudio](modelStudio.png)\n\n## What factors correlate with happiness at national level?\n\n1. Get data about happiness from \nhttps://www.kaggle.com/unsdsn/world-happiness\n\n2. Train your favorite ML model that will predict the happiness score\n\n3. Explain the model with [modelStudio](https://github.com/ModelOriented/modelStudio)\n\n```r\nlibrary(\"DALEX\")\nlibrary(\"modelStudio\")\nlibrary(\"ranger\")\n\n# get data\nhappiness \u003c- readRDS(\"happiness.rds\")\n\n# get model and explainer\nmodel \u003c- ranger(score~., data = happiness)\nmodelr \u003c- explain(model, data = happiness[,-1], y = happiness$score)\n\n# get model studio\nms \u003c- modelStudio(modelr, happiness[c(\"Poland\",\"Finland\",\"Germany\"),],\n                  options = ms_options(margin_left = 220))\nms\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbiecek%2Fxai-happiness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbiecek%2Fxai-happiness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbiecek%2Fxai-happiness/lists"}