{"id":23824692,"url":"https://github.com/soran-ghaderi/cnn_low_level","last_synced_at":"2025-07-24T19:12:54.225Z","repository":{"id":134348645,"uuid":"227632694","full_name":"soran-ghaderi/CNN_low_level","owner":"soran-ghaderi","description":"A low-level implementation of Convolutional neural networks (no deep learning framework). v1.0","archived":false,"fork":false,"pushed_at":"2021-01-06T03:18:30.000Z","size":38891,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T10:56:51.328Z","etag":null,"topics":["cnn","computer-vision","convolutional-neural-networks","deep-learning","low-level","machine-learning","python"],"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/soran-ghaderi.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":"2019-12-12T15:03:21.000Z","updated_at":"2024-03-04T19:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7db95a1-db1b-4bce-92cc-fc64f4d5000e","html_url":"https://github.com/soran-ghaderi/CNN_low_level","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soran-ghaderi/CNN_low_level","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soran-ghaderi%2FCNN_low_level","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soran-ghaderi%2FCNN_low_level/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soran-ghaderi%2FCNN_low_level/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soran-ghaderi%2FCNN_low_level/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soran-ghaderi","download_url":"https://codeload.github.com/soran-ghaderi/CNN_low_level/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soran-ghaderi%2FCNN_low_level/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266890413,"owners_count":24001545,"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-07-24T02:00:09.469Z","response_time":99,"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":["cnn","computer-vision","convolutional-neural-networks","deep-learning","low-level","machine-learning","python"],"created_at":"2025-01-02T11:15:29.010Z","updated_at":"2025-07-24T19:12:54.219Z","avatar_url":"https://github.com/soran-ghaderi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CNN_low_level v1.0\n\n### A low-level implementation of Convolutional neural networks (no deep learning framework).\n\n\u003e This version is not Vectorized (therefore slower)\n\n## Methods included:\n\n  | Number  | function           |\n  | ------------- | -------------            |\n  |       1.     |  `Conv2d forward`             |\n  |       2.     | `Conv2d backward `        |\n  |       3.     | `maxpool2d forward`  |\n  |       4.     | `maxpool2d backward`                |\n  |       5.     | `averagepool2d forward`          |\n  |       5.     | `averagepool2d backward`          |\n  \n  Helper funcions:\n  \n  | Number  | function           |\n  | ------------- | -------------            |\n  |       1.     | `zero_pad()`             |\n  |       2.     | `conv_single_step()`        |\n  |       3.     | `distribute_value()`  |\n  |       4.     | `create_mask_from_window()`                |\n  \n  ### Examples\n  ```python\n  import matplotlib.pyplot as plt\n  from nn.layers import *\n  \n  plt.rcParams[\"figure.figsize\"] = (5.0, 4.0)\n  plt.rcParams[\"image.interpolation\"] = \"nearest\"\n  plt.rcParams[\"image.cmap\"] = \"Accent\"\n  \n  x = np.random.randn(4, 3, 3, 2)\n  x_pad = zero_pad(x, 2)\n  print(\"x.shape =\\n\", x.shape)\n  print(\"x_pad.shape =\\n\", x_pad.shape)\n  print(\"x[1,1] =\\n\", x[1, 1])\n  print(\"x_pad[1,1] =\\n\", x_pad[1, 1])\n  \n  fig, axarr = plt.subplots(1, 2)\n  axarr[0].set_title('x')\n  axarr[0].imshow(x[0, :, :, 0])\n  axarr[1].set_title('x_pad')\n  axarr[1].imshow(x_pad[0, :, :, 0])\n  plt.show()  \n  ```\n  \n  ### Future work\n  - [ ] `Add compute cost function`\u003cbr/\u003e\n  - [X] `Modulate the functions`\u003cbr/\u003e\n  - [ ] `Add a final model`\u003cbr/\u003e\n  - [ ] `Add unittest for functions`\u003cbr/\u003e\n  - [ ] `Vectorize`\u003cbr/\u003e\n  \n  \u003e More detailed documentation will be uploaded later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoran-ghaderi%2Fcnn_low_level","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoran-ghaderi%2Fcnn_low_level","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoran-ghaderi%2Fcnn_low_level/lists"}