Skip to content

Commit

Permalink
Merge pull request #7 from mcreel/devel
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
mcreel authored Jul 14, 2023
2 parents f97de5f + 84cc867 commit 022a1b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ The main purpose of these examples is to show how to use the methods with real d
You will end up with something like the following:

## SV: stochastic volatility model
![SVchain](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/example/SVchain.png)
![SVresults](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/example/SVresults.png)
![SVchain](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/examples/SVchain.png)
![SVresults](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/examples/SVresults.png)

## MN: mixture of normals model
![MNchain](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/example/MNchain.png)
![MNresults](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/example/MNresults.png)
![MNchain](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/examples/MNchain.png)
![MNresults](https://github.com/mcreel/SimulatedNeuralMoments.jl/blob/main/examples/MNresults.png)



2 changes: 1 addition & 1 deletion src/MakeNeuralMoments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function MakeNeuralMoments(model::SNMmodel;TrainTestSize=1, Epochs=1000)
if i < 20
opt = Momentum() # the optimizer
else
opt = ADAMW() # the optimizer
opt = AdamW() # the optimizer
end
Flux.train!(loss, Flux.params(NNmodel), batches, opt)
current = loss(xout,yout)
Expand Down

2 comments on commit 022a1b2

@mcreel
Copy link
Owner Author

@mcreel mcreel commented on 022a1b2 Jul 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/87494

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.0.0 -m "<description of version>" 022a1b2fe87403d9040f62e834101e735d2ea2df
git push origin v2.0.0

Please sign in to comment.