Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sasagawa888/7344afdb6125e594ba578388e2274f55 to your computer and use it in GitHub Desktop.
Save sasagawa888/7344afdb6125e594ba578388e2274f55 to your computer and use it in GitHub Desktop.
# for CNN test for Fashion-MNIST
defnetwork init_network9(_x) do
_x
# |> visualizer(1,1)
|> f(5, 5, 1, 12, {1, 1}, 1, 0.1, 0.001)
|> pooling(2, 2)
|> f(3, 3, 12, 12, {1, 1}, 1, 0.1, 0.001)
|> f(2, 2, 12, 12, {1, 1}, 1, 0.1, 0.001)
|> pooling(2, 2)
|> f(3, 3, 12, 12, {1, 1}, 0, 0.1, 0.001)
|> relu
# |> visualizer(1,1)
|> full
|> w(300, 10, 0.1, 0.001)
|> softmax
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment