{"id":22147756,"url":"https://github.com/rudrodip/timmygrad","last_synced_at":"2026-05-09T01:10:16.621Z","repository":{"id":237515857,"uuid":"794531450","full_name":"rudrodip/timmygrad","owner":"rudrodip","description":"scalar value gradient descent optimizer","archived":false,"fork":false,"pushed_at":"2024-05-02T15:08:57.000Z","size":335,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T08:55:28.027Z","etag":null,"topics":["backpropagation","gradient-descent","multilayer-perceptron-network","neural-network","numpy","python3","pytorch"],"latest_commit_sha":null,"homepage":"","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/rudrodip.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":"2024-05-01T11:51:01.000Z","updated_at":"2024-05-02T15:09:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ca6fbf7-f046-4d8f-bc12-c7aadc34f534","html_url":"https://github.com/rudrodip/timmygrad","commit_stats":null,"previous_names":["rudrodip/timmygrad"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftimmygrad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftimmygrad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftimmygrad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudrodip%2Ftimmygrad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudrodip","download_url":"https://codeload.github.com/rudrodip/timmygrad/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245268798,"owners_count":20587669,"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":["backpropagation","gradient-descent","multilayer-perceptron-network","neural-network","numpy","python3","pytorch"],"created_at":"2024-12-01T23:20:45.328Z","updated_at":"2026-05-09T01:10:11.586Z","avatar_url":"https://github.com/rudrodip.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timmygrad\n\nTimmygrad is a scalar value gradient descent optimizer for Python. It is designed to be simple and easy to use, with a focus on readability and understandability. It is not designed for performance, but rather for educational purposes.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/rudrodip/timmygrad/blob/main/timmy.gif\" /\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003ethis is timmy btw\u003c/p\u003e\n\nHere is a simple Linear Regression example using Timmygrad:\n\n```python\nm = Value(0.0)\nc = Value(0.0)\n\nalpha = 0.01 # learning rate\nepochs = 200\n\nfor epoch in range(epochs):\n  for x, y in zip(X, Y):\n    # forward pass\n    y_pred = m * x + c\n\n    # compute loss\n    loss = (y - y_pred) ** 2\n\n    # backward pass\n    loss.backward()\n\n    # update weights\n    m.data -= alpha * m.grad\n    c.data -= alpha * c.grad\n\n    # reset gradients\n    m.grad = 0\n    c.grad = 0\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/rudrodip/timmygrad/blob/main/linear_regression.png\" /\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudrodip%2Ftimmygrad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudrodip%2Ftimmygrad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudrodip%2Ftimmygrad/lists"}