{"id":19854782,"url":"https://github.com/hengluchang/visualizing_momentum","last_synced_at":"2025-09-07T21:06:19.632Z","repository":{"id":42569118,"uuid":"144664717","full_name":"hengluchang/visualizing_momentum","owner":"hengluchang","description":"Visualizing Gradient Descent with Momentum in Python","archived":false,"fork":false,"pushed_at":"2018-08-14T04:12:49.000Z","size":8,"stargazers_count":25,"open_issues_count":0,"forks_count":11,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-02T01:37:46.978Z","etag":null,"topics":["deep-learning","gradient-descent","machienlearning","momentum","optimization","visualization"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/hengluchang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-14T03:40:00.000Z","updated_at":"2024-01-04T16:25:24.000Z","dependencies_parsed_at":"2022-09-19T20:44:45.065Z","dependency_job_id":null,"html_url":"https://github.com/hengluchang/visualizing_momentum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hengluchang/visualizing_momentum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengluchang%2Fvisualizing_momentum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengluchang%2Fvisualizing_momentum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengluchang%2Fvisualizing_momentum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengluchang%2Fvisualizing_momentum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hengluchang","download_url":"https://codeload.github.com/hengluchang/visualizing_momentum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hengluchang%2Fvisualizing_momentum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274095421,"owners_count":25221433,"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-07T02:00:09.463Z","response_time":67,"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":["deep-learning","gradient-descent","machienlearning","momentum","optimization","visualization"],"created_at":"2024-11-12T14:10:24.375Z","updated_at":"2025-09-07T21:06:19.591Z","avatar_url":"https://github.com/hengluchang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# visualizing_momentum\nVisualizing Gradient Descent with Momentum in Python, check out the blog post [here](https://medium.com/@hengluchang/visualizing-gradient-descent-with-momentum-in-python-7ef904c8a847)! \n\n# Pre-reqs\nPython 3.6\n\n# Libraries\n- matplotlib\n- numpy\n\n# How to run\n`python3 loss_surface.py` to generate loss surface figure. \n\n`python3 momentum.py` to generate weight trajectories and velocity-iteration plots. \n\n# References\n- [An overview of gradient descent algorithms](http://ruder.io/optimizing-gradient-descent/index.html#momentum)\n- [On the importance of initialization and momentum in deep learning](http://www.cs.toronto.edu/~fritz/absps/momentum.pdf)\n- [Why momentum really works](https://distill.pub/2017/momentum/)\n- [Momentum and learning rate adaptation](https://www.willamette.edu/~gorr/classes/cs449/momrate.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhengluchang%2Fvisualizing_momentum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhengluchang%2Fvisualizing_momentum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhengluchang%2Fvisualizing_momentum/lists"}