Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Let's take the simple ndarray activation function as an example to see what the ideal state would look like:

(s/def ::ndarray ...#(instance? NDArray %))
(s/def ::act-type #{"relu" "sigmoid" ...})
(s/fdef ::activation ...)

(defn activation

...

  [{:keys [data weight bias num-hidden no-bias flatten name attr]
:or {attr {}} :as opts}] ...)

...