https://github.com/bcherny/learner
learn an alphabet given a training set
https://github.com/bcherny/learner
Last synced: 8 months ago
JSON representation
learn an alphabet given a training set
- Host: GitHub
- URL: https://github.com/bcherny/learner
- Owner: bcherny
- Created: 2016-02-06T18:52:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T02:59:53.000Z (over 9 years ago)
- Last Synced: 2024-12-17T03:03:24.068Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# learner
> learn an alphabet given a training set
### running
```sh
npm i
npm start
```### sample output (from test case 2)
```text
~/Sites/github/learner (master)*$ node learner.js
learned: a > b (addChilding b to a to root)
world: root
└── a
└── b
└── (empty)
learned: a > e (addChilding to e to a)
world: root
└── a
├── b
│ └── (empty)
│
└── e
└── (empty)
learned: e > r (addChilding to r to e)
world: root
└── a
├── b
│ └── (empty)
│
└── e
└── r
└── (empty)
learned: b > c (addChilding to c to b)
world: root
└── a
├── b
│ └── c
│ └── (empty)
│
│
└── e
└── r
└── (empty)
learned: c > d (addChilding to d to c)
world: root
└── a
├── b
│ └── c
│ └── d
│ └── (empty)
│
│
│
└── e
└── r
└── (empty)
learned: a > o (addChilding to o to a)
world: root
└── a
├── b
│ └── c
│ └── d
│ └── (empty)
│
│
│
├── e
│ └── r
│ └── (empty)
│
│
└── o
└── (empty)
learned: d > e (addChilding to e to d)
world: root
└── a
├── b
│ └── c
│ └── d
│ └── e
│ └── r
│ └── (empty)
│
│
│
│
│
└── o
└── (empty)
learned: e > r (addChilding to r to e)
world: root
└── a
├── b
│ └── c
│ └── d
│ └── e
│ └── r
│ └── (empty)
│
│
│
│
│
└── o
└── (empty)
learned: r > o (addChilding to o to r)
world: root
└── a
└── b
└── c
└── d
└── e
└── r
└── o
└── (empty)
done: root
└── a
└── b
└── c
└── d
└── e
└── r
└── o
└── (empty)
```