You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's the famous [neural network in 11 lines of Python](http://iamtrask.github.io/2015/07/12/basic-python-network/), now in scala:
10
+
Here's the famous [neural network in 11 lines of Python](http://iamtrask.github.io/2015/07/12/basic-python-network/), translated to Numsca:
11
11
12
12
```scala
13
13
importbotkop.{numsca=>ns}
@@ -24,23 +24,25 @@ for (j <- 0 until 60000) {
24
24
w0 += x.T.dot(l1Delta)
25
25
}
26
26
```
27
-
In scala it may be a bit longer, but otherwise it's pretty similar.
28
27
29
-
Another example: a scala translation of Andrej Karpathy's
28
+
Another example: a Scala translation of Andrej Karpathy's
30
29
['Minimal character-level language model with a Vanilla Recurrent Neural Network'](src/main/scala/botkop/numsca/samples/MinCharRnn.scala).
31
30
(Compare with Andrej Karpathy's original [post](https://gist.github.com/karpathy/d4dee566867f8291f086).)
32
31
32
+
Also have a look at [Scorch](https://github.com/botkop/scorch), a neural net framework in the spirit of [PyTorch](http://pytorch.org/), which uses Numsca.
33
+
34
+
33
35
## Why?
34
-
I love scala. I teach myself deep learning. Everything in deep learning is written in python.
35
-
This library helps me to quickly translate python and numpy code to my favorite language.
36
+
I love Scala. I teach myself deep learning. Everything in deep learning is written in Python.
37
+
This library helps me to quickly translate Python and Numpy code to my favorite language.
36
38
37
39
I hope you find it useful.
38
40
39
41
Pull requests welcome.
40
42
41
43
## Disclaimer
42
-
This is far from an exhaustive copy of numpy's functionality. I'm adding functionality as I go.
43
-
That being said, I think many of the most interesting aspects of numpy like slicing, broadcasting and indexing
44
+
This is far from an exhaustive copy of Numpy's functionality. I'm adding functionality as I go.
45
+
That being said, I think many of the most interesting aspects of Numpy like slicing, broadcasting and indexing
0 commit comments