{"id":27862478,"url":"https://github.com/nomadsdev/rnn-model-with-c","last_synced_at":"2026-07-20T19:31:32.600Z","repository":{"id":290624124,"uuid":"975078173","full_name":"nomadsdev/rnn-model-with-c","owner":"nomadsdev","description":"model rnn with c","archived":false,"fork":false,"pushed_at":"2025-04-29T18:46:56.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T06:30:17.616Z","etag":null,"topics":["ai","c","model","neural-network","rnn"],"latest_commit_sha":null,"homepage":"","language":"C","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/nomadsdev.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,"zenodo":null}},"created_at":"2025-04-29T18:43:24.000Z","updated_at":"2025-04-29T18:47:42.000Z","dependencies_parsed_at":"2025-04-29T19:45:59.448Z","dependency_job_id":"20d60d3a-968a-409e-8787-334974da464e","html_url":"https://github.com/nomadsdev/rnn-model-with-c","commit_stats":null,"previous_names":["nomadsdev/rnn-model-with-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nomadsdev/rnn-model-with-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Frnn-model-with-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Frnn-model-with-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Frnn-model-with-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Frnn-model-with-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomadsdev","download_url":"https://codeload.github.com/nomadsdev/rnn-model-with-c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomadsdev%2Frnn-model-with-c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015299,"owners_count":26085683,"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-10-13T02:00:06.723Z","response_time":61,"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":["ai","c","model","neural-network","rnn"],"created_at":"2025-05-04T20:29:12.636Z","updated_at":"2025-10-13T13:15:07.443Z","avatar_url":"https://github.com/nomadsdev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧠 RNN in C\n\nThis is a simple implementation of a **Recurrent Neural Network (RNN)** in **pure C**.  \nIt demonstrates the concept of forward propagation over a sequence of time-series inputs without using any external libraries.\n\n---\n\n## 📁 Project Structure\n\n```\nrnn-c/\n├── include/             # Header files\n│   ├── rnn.h            # RNN structure and declarations\n│   └── utils.h          # Utility functions (e.g., matrix multiplication)\n├── src/                 # Source code\n│   ├── rnn.c            # RNN logic (init, forward, print)\n│   └── utils.c          # Math utility implementation\n├── data/                # Example input data (optional)\n│   └── sample_input.txt\n├── main.c               # Program entry point\n├── Makefile             # Build configuration\n└── README.md            # This file\n```\n\n---\n\n## 🧪 Requirements\n\n- GCC or compatible C compiler (e.g. `gcc`, `clang`)\n- `make` (for building the project)\n\n---\n\n## ⚙️ Build Instructions\n\n### 1. Clone or download the project:\n\n```bash\ngit clone https://github.com/nomadsdev/rnn-model-with-c.git\ncd rnn-c\n```\n\n### 2. Build the project using `make`:\n\n```bash\nmake\n```\n\nThis compiles all `.c` files and generates an executable named `rnn`.\n\n---\n\n## 🚀 Running the Program\n\n```bash\n./rnn\n```\n\n### Expected Output:\n\n```text\nTime step 0: Output: 0.4938\nTime step 1: Output: 0.4962\nTime step 2: Output: 0.4975\n```\n\nThe program performs forward propagation across 3 time steps using a hardcoded input sequence (`0.1`, `0.5`, `0.9`) and prints the output of the RNN at each step.\n\n---\n\n## 🧰 How to Modify Inputs\n\nTo change the input sequence:\n\n1. Open `main.c`\n2. Modify the `inputs[]` array:\n\n```c\nfloat inputs[] = {0.2f, 0.4f, 0.6f, 0.8f};\n```\n\n3. Rebuild the project:\n\n```bash\nmake clean \u0026\u0026 make\n./rnn\n```\n\n---\n\n## 🛠️ How to Extend This Project\n\nHere are some ideas for improving this base project:\n\n- ✅ Add Backpropagation Through Time (BPTT)\n- 📉 Loss function and training loop\n- 📁 Load input from file (`sample_input.txt`)\n- 🧠 Increase model complexity (e.g., stacked RNN layers)\n- 💾 Save and load weights to/from file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomadsdev%2Frnn-model-with-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomadsdev%2Frnn-model-with-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomadsdev%2Frnn-model-with-c/lists"}