4 ms·
The description: "no dependencies." The first line: "import numpy as np"
by mankyd 2y ago
The description: "no dependencies."
The first line: "import numpy as np"
- tonio 2y agoyou got me, lol. to be fair the only reason numpy is there is because truly pure python doesn't have matmuls, and I didn't think reimplementing it wouldn't serve a didactic purpose. A cool idea for a v2 without numpy would be implementing matmuls with lists, matrix transpose with zip() and switching np.exp for math.exp. And getting all that on fewer lines as possible.
- deleted 2y ago[deleted]