{"id":17131365,"url":"https://github.com/vc1492a/us-state-under-over-fitting","last_synced_at":"2026-04-20T19:31:32.631Z","repository":{"id":85503900,"uuid":"156327050","full_name":"vc1492a/us-state-under-over-fitting","owner":"vc1492a","description":"A visual example of the concepts of under and overfitting in supervised machine learning using U.S. state border data.","archived":false,"fork":false,"pushed_at":"2018-11-18T16:36:54.000Z","size":1165,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T08:57:20.484Z","etag":null,"topics":["bias-variance","d3","d3js","machine-learning","overfitting","supervised-learning","underfitting","visualization"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/vc1492a.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":"2018-11-06T04:43:33.000Z","updated_at":"2021-12-23T19:37:01.000Z","dependencies_parsed_at":"2023-03-05T12:15:37.250Z","dependency_job_id":null,"html_url":"https://github.com/vc1492a/us-state-under-over-fitting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vc1492a/us-state-under-over-fitting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vc1492a%2Fus-state-under-over-fitting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vc1492a%2Fus-state-under-over-fitting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vc1492a%2Fus-state-under-over-fitting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vc1492a%2Fus-state-under-over-fitting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vc1492a","download_url":"https://codeload.github.com/vc1492a/us-state-under-over-fitting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vc1492a%2Fus-state-under-over-fitting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32062261,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bias-variance","d3","d3js","machine-learning","overfitting","supervised-learning","underfitting","visualization"],"created_at":"2024-10-14T19:23:21.156Z","updated_at":"2026-04-20T19:31:32.614Z","avatar_url":"https://github.com/vc1492a.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Visual Look at Under and Overfitting using U.S. States\n\nA visual example of the concepts of under and overfitting in supervised\nmachine learning using U.S. state border data provided by the U.S.\nCensus Bureau.\n\n[![License](https://img.shields.io/packagist/l/doctrine/orm.svg)](https://opensource.org/licenses/MIT)\n\n## What's Inside?\n\nThis repository contains a jupyter notebook and D3 visualization that showcases visual\nexamples of the concepts of under and overfitting. In the notebook,\ndata is processed, models are fit, and decision surfaces visualized, as\nshown below.\n![notebook_surface](https://i.imgur.com/s5cp3Um.png)\n\nThe [D3 visualization](https://vc1492a.github.io/us-state-under-over-fitting/)\ncan be used to explore decision surfaces generated in the\nnotebook interactively. On the left are toggles for different views, and\non the right selections for models and their respective decision surfaces.\n\n![visualization_surface](https://i.imgur.com/yd7Dzgv.png/)\n\nThis repository and its contents serve as a learning exercise on the\neffects of under and overfit models' generalizability to new data - using\nU.S. states helps because the appropriate geographic shapes are familiar\nto many.\n\n## How To\n\nFrom this repository's root directory, do the following to start the notebook:\n\n```sh\ncd notebooks\njupyter notebook\n```\n\nClick `Under and Overfitting by Example - 48 U.S. Contiguous States.ipynb`.\n\nTo start the D3 visualization, the following will work using Python 3:\n\n```sh\ncd visualization\npython3 -m http.server\n```\n\nGo to `localhost:8000` in your browser. The initial load may take a few\nseconds while the data is processed - a map will appear when ready.\nUse the toggle switches in the top left to alter views and the selections\nin the top right to select between models.\n\n## Future Work\n\nThe d3 visualization can be a little slow to render depending on the browser\nand available resources. This can likely be addressed with a thorough refactor.\n\n## License\nThis project is licensed under the MIT license.\n\n## Contributors\n\n- [Valentino Constantinou](https://github.com/vc1492a)\n- [Christopher Laporte](https://github.com/cdlaporte)\n\n## Acknowledgements\n\n- [Ian Colwell](https://github.com/iancolwell)\n- [Kyle Hundman](https://github.com/khundman)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvc1492a%2Fus-state-under-over-fitting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvc1492a%2Fus-state-under-over-fitting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvc1492a%2Fus-state-under-over-fitting/lists"}