{"id":20073129,"url":"https://github.com/pit-ray/vim-dnn","last_synced_at":"2026-02-17T12:03:39.739Z","repository":{"id":167907836,"uuid":"640230309","full_name":"pit-ray/vim-dnn","owner":"pit-ray","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-21T12:27:03.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T07:42:40.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim Script","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/pit-ray.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,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T12:07:16.000Z","updated_at":"2023-05-21T12:36:28.000Z","dependencies_parsed_at":"2023-11-02T21:00:17.554Z","dependency_job_id":null,"html_url":"https://github.com/pit-ray/vim-dnn","commit_stats":null,"previous_names":["pit-ray/vim-dnn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pit-ray/vim-dnn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pit-ray%2Fvim-dnn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pit-ray%2Fvim-dnn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pit-ray%2Fvim-dnn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pit-ray%2Fvim-dnn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pit-ray","download_url":"https://codeload.github.com/pit-ray/vim-dnn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pit-ray%2Fvim-dnn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29543378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-11-13T14:43:59.437Z","updated_at":"2026-02-17T12:03:39.721Z","avatar_url":"https://github.com/pit-ray.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-dnn\n\n## Dependencies\n\n- [vim-autograd](https://github.com/pit-ray/vim-autograd)\n\n```vim\nPlug 'pit-ray/vim-autograd', {'branch': 'vim9'}\n```\n\n\n## Usage\n\n```vim\nvim9script\n\nimport autoload 'autograd.vim' as ag\nimport '../autoload/dnn.vim' as nn\n\nvar Tensor = ag.Tensor\nvar HasModule = nn.HasModule\n\n\nclass MLP implements HasModule\n  this.l1: HasModule\n  this.l2: HasModule\n\n  def new(in_size: number, classes: number)\n    this.l1 = nn.Linear.new(in_size, 100)\n    this.l2 = nn.Linear.new(100, classes)\n  enddef\n\n  def GetParameters(): list\u003cTensor\u003e\n    var params: list\u003cTensor\u003e\n    params += this.l1.GetParameters()\n    params += this.l2.GetParameters()\n    return params\n  enddef\n\n  def Forward(...inputs: list\u003cany\u003e): Tensor\n    var h = nn.ReLU(this.l1.Forward(inputs[0]))\n    h = nn.Softmax(this.l2.Forward(h))\n    return h\n  enddef\nendclass\n\n\ndef Main()\n  var model = MLP.new(3, 13)\n\n  var inputs = ag.Zeros([2, 3])\n  var y = model.Forward(inputs)\n  echo y.data\nenddef\n\n\nMain()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpit-ray%2Fvim-dnn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpit-ray%2Fvim-dnn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpit-ray%2Fvim-dnn/lists"}