Skip to content
Snippets Groups Projects
Commit 4b8f0838 authored by pat-alt's avatar pat-alt
Browse files

adam also working nicely

parent 849f24f5
No related branches found
No related tags found
No related merge requests found
artifacts/results/images/mnist_eccco.png

7.89 KiB | W: | H:

artifacts/results/images/mnist_eccco.png

5.62 KiB | W: | H:

artifacts/results/images/mnist_eccco.png
artifacts/results/images/mnist_eccco.png
artifacts/results/images/mnist_eccco.png
artifacts/results/images/mnist_eccco.png
  • 2-up
  • Swipe
  • Onion skin
artifacts/results/images/mnist_generated_JEM Ensemble.png

59.9 KiB | W: | H:

artifacts/results/images/mnist_generated_JEM Ensemble.png

180 KiB | W: | H:

artifacts/results/images/mnist_generated_JEM Ensemble.png
artifacts/results/images/mnist_generated_JEM Ensemble.png
artifacts/results/images/mnist_generated_JEM Ensemble.png
artifacts/results/images/mnist_generated_JEM Ensemble.png
  • 2-up
  • Swipe
  • Onion skin
artifacts/results/images/mnist_generated_JEM.png

63.8 KiB | W: | H:

artifacts/results/images/mnist_generated_JEM.png

167 KiB | W: | H:

artifacts/results/images/mnist_generated_JEM.png
artifacts/results/images/mnist_generated_JEM.png
artifacts/results/images/mnist_generated_JEM.png
artifacts/results/images/mnist_generated_JEM.png
  • 2-up
  • Swipe
  • Onion skin
artifacts/results/images/mnist_generated_MLP Ensemble.png

231 KiB | W: | H:

artifacts/results/images/mnist_generated_MLP Ensemble.png

270 KiB | W: | H:

artifacts/results/images/mnist_generated_MLP Ensemble.png
artifacts/results/images/mnist_generated_MLP Ensemble.png
artifacts/results/images/mnist_generated_MLP Ensemble.png
artifacts/results/images/mnist_generated_MLP Ensemble.png
  • 2-up
  • Swipe
  • Onion skin
artifacts/results/images/mnist_generated_MLP.png

199 KiB | W: | H:

artifacts/results/images/mnist_generated_MLP.png

240 KiB | W: | H:

artifacts/results/images/mnist_generated_MLP.png
artifacts/results/images/mnist_generated_MLP.png
artifacts/results/images/mnist_generated_MLP.png
artifacts/results/images/mnist_generated_MLP.png
  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -186,16 +186,16 @@ First, let's create a couple of image classifier architectures:
```{julia}
# Model parameters:
epochs = 100
batch_size = minimum([Int(round(n_obs/10)), 128])
batch_size = minimum([Int(round(n_obs/10)), 100])
n_hidden = 128
activation = Flux.swish
builder = MLJFlux.@builder Flux.Chain(
Dense(n_in, n_hidden, activation),
Dense(n_hidden, n_out),
)
n_ens = 5 # number of models in ensemble
_loss = Flux.Losses.crossentropy # loss function
_finaliser = Flux.softmax # finaliser function
n_ens = 5 # number of models in ensemble
_loss = Flux.Losses.crossentropy # loss function
_finaliser = Flux.softmax # finaliser function
```
```{julia}
......@@ -430,7 +430,11 @@ end
```
```{julia}
plt, eccco_generator, ces = _plot_eccco_mnist()
opt = Flux.Optimise.Adam(0.01)
Λ = [0.1,0.25,0.25]
use_class_loss = true
plt, eccco_generator, ces = _plot_eccco_mnist(opt=opt, λ=Λ, use_class_loss=use_class_loss)
display(plt)
savefig(plt, joinpath(output_images_path, "mnist_eccco.png"))
```
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment