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
Now we'll define a standard univariate MDN. For this example, we construct a network with 2 hidden layers of size 128, which outputs a distribution
25
29
with 5 Gaussian mixtures.
26
30
```julia
27
-
model = MixtureDensityNetwork(1, 1, [128, 128], 5)
31
+
model = MixtureDensityNetwork(1, 1, layers, mixtures)
28
32
```
29
33
30
34
We can fit our model to our data by calling `fit!(m, X, Y; opt=Flux.Adam(), batchsize=32, epochs=100)`. We specify that we want to train our model for
31
35
500 epochs with the Adam optimiser and a batch size of 128. This method returns the model with the lowest loss as its first value and a named tuple
32
36
containing the learning curve, best epoch, and lowest loss observed during training as its second value. We can use Makie's `lines` method to visualize
0 commit comments