{"id":16441910,"url":"https://github.com/adelsz/oxigrad","last_synced_at":"2026-06-07T20:31:35.001Z","repository":{"id":220413862,"uuid":"751582587","full_name":"adelsz/oxigrad","owner":"adelsz","description":"Toy autodifferentiation engine in Rust","archived":false,"fork":false,"pushed_at":"2024-02-01T22:25:55.000Z","size":7780,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-24T17:34:14.475Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/adelsz.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-01T22:22:50.000Z","updated_at":"2024-02-02T15:32:50.000Z","dependencies_parsed_at":"2024-02-02T00:06:32.549Z","dependency_job_id":null,"html_url":"https://github.com/adelsz/oxigrad","commit_stats":null,"previous_names":["adelsz/oxigrad"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelsz%2Foxigrad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelsz%2Foxigrad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelsz%2Foxigrad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adelsz%2Foxigrad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adelsz","download_url":"https://codeload.github.com/adelsz/oxigrad/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240365153,"owners_count":19789880,"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":[],"created_at":"2024-10-11T09:15:46.003Z","updated_at":"2026-06-07T20:31:34.950Z","avatar_url":"https://github.com/adelsz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oxigrad - toy automatic differentiation engine in Rust\n\nThis is a self-contained toy automatic differentiation engine written in Rust.  \nBuilt for learning purposes and partially inspired by [micrograd](https://github.com/karpathy/micrograd).  \nAPI is focused on ease of use and educational clarity, performance was not a priority.\n\n## Usage\n\n```rust\n    #[test]\n    fn backprop_test() {\n        let a = Value::new(2.0);\n        let b = Value::new(1.0);\n    \n        // z = (a * b + a) * (a * b + b) = a^2 * b^2 + a^2 * b + a * b^2 + a * b\n        let z = (\u0026a * \u0026b + \u0026a) * (\u0026a * \u0026b + \u0026b);\n    \n        backprop(\u0026z);\n    \n        // dz/da = 2ab^2 + 2ab + b^2 + b = 2*2*1 + 2*2 + 1 + 1 = 10\n        assert_eq!(a.grad().get(), 10.0);\n    }\n```\n\n## Basic neural network training\n\nThere is a basic NN training example in `src/neuron.rs` that also saves a training progress visualization in a GIF file.\n\n\u003cimg src=\"./test.gif\" width=600\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadelsz%2Foxigrad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadelsz%2Foxigrad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadelsz%2Foxigrad/lists"}