UNPKG

@andypai/neuroflow

Version:

simple neural network library inspired by karpathy/micrograd and tfjs

12 lines (9 loc) 257 B
import range from './range.js' test('range with default step of one', () => { const values = range(0, 5) expect(values).toEqual([0, 1, 2, 3, 4]) }) test('range with step', () => { const values = range(0, 5, 2) expect(values).toEqual([0, 2, 4]) })