{"id":17086231,"url":"https://github.com/kach/lagrange-climbs-a-hill","last_synced_at":"2026-04-30T18:32:03.206Z","repository":{"id":66653306,"uuid":"218138116","full_name":"kach/lagrange-climbs-a-hill","owner":"kach","description":"Interpolating Lagrangian mechanics by AD and gradient descent","archived":false,"fork":false,"pushed_at":"2019-10-28T20:22:41.000Z","size":2246,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T14:36:59.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/kach.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":"2019-10-28T20:22:28.000Z","updated_at":"2020-12-31T20:45:21.000Z","dependencies_parsed_at":"2023-02-25T16:45:15.815Z","dependency_job_id":null,"html_url":"https://github.com/kach/lagrange-climbs-a-hill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kach/lagrange-climbs-a-hill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Flagrange-climbs-a-hill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Flagrange-climbs-a-hill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Flagrange-climbs-a-hill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Flagrange-climbs-a-hill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kach","download_url":"https://codeload.github.com/kach/lagrange-climbs-a-hill/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kach%2Flagrange-climbs-a-hill/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":[],"created_at":"2024-10-14T13:27:58.251Z","updated_at":"2026-04-30T18:32:03.181Z","avatar_url":"https://github.com/kach.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"I'm a CS major in a physics class, which means that all optimization problems\njust look like opportunities for gradient descent... here I use PyTorch's\nautomatic differentiation tools to try and optimize the \"action\" of a physical\nsystem (in the Lagrangian sense) in order to \"learn\" its true trajectory -- a\nvisual display of the Principle of Stationary Action!\n\n## Some demos\n\nAll of these are seeded with random trajectories and left to tune for a few\nthousand steps of gradient descent, just a few minutes of total computation\ntime.\n\n### Trajectory of a projectile\n\n![a parabola](trajectory.gif)\n\n### Keplerian Orbit\n\n![an ellipse](orbit.gif)\n\n### Spherical Cart-Pole\n\n![who knows](cart-pole.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkach%2Flagrange-climbs-a-hill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkach%2Flagrange-climbs-a-hill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkach%2Flagrange-climbs-a-hill/lists"}