|
|
|
|
|
by piokoch
2012 days ago
|
|
I am not sure if I am that enthusiastic. The problem with Lisp is not a number of parenthesis but where they are and what is their role. In c-like languages parenthesis help parser compiler but they also help humans to read the code. In case of Lisp they are just for the sake of the parser.
Let's look on the code: Python: model = Sequential()
model.add(Conv2D(32, kernel_size=(3, 3),
activation='relu',
input_shape=(28, 28, 1)))
Clojure: (defonce net-bp
(network (desc [128 1 28 28] :float :nchw)
Which one is more readable? looking on the Clojure code I see 128 1 28 28 thrown on me, without digging in the documentation I have no idea what's happening. |
|
Python:
Clojure: It all depends on how desc is defined.Disclaimer: no idea what those functions mean, I only made syntactic changes.