Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattn/vim-brain
Neural Networks written in Vim script
https://github.com/mattn/vim-brain
Last synced: 22 days ago
JSON representation
Neural Networks written in Vim script
- Host: GitHub
- URL: https://github.com/mattn/vim-brain
- Owner: mattn
- Created: 2018-12-24T14:53:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-24T15:31:26.000Z (almost 6 years ago)
- Last Synced: 2024-10-04T11:17:42.984Z (about 1 month ago)
- Language: Vim script
- Homepage:
- Size: 16.2 MB
- Stars: 95
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-brain
Neural Network Library for Vim script. This is Vim script port of [goml/gobrain](https://github.com/goml/gobrain).
## Usage
Learning XOR in Vim script.
```vim
function! s:test() abort
call brain#srand(0)let l:patterns = [
\ [[0.0, 0.0], [0.0]],
\ [[0.0, 1.0], [1.0]],
\ [[1.0, 0.0], [1.0]],
\ [[1.0, 1.0], [0.0]],
\]let l:ff = brain#new_feed()
call l:ff.Init(2, 2, 1)
call l:ff.Train(l:patterns, 1000, 0.6, 0.4, v:false)
call l:ff.Test(l:patterns)
endfunctioncall s:test()
```## Installation
```vim
Plug 'mattn/vim-brain'
```## License
MIT
## Author
Yasuhiro Matsuoto (a.k.a. mattn)