-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from ilabcode/dev
Version 0.5.2
- Loading branch information
Showing
18 changed files
with
125 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ authors = [ "Peter Thestrup Waade [email protected]", | |
"Anna Hedvig Møller [email protected]", | ||
"Jacopo Comoglio [email protected]", | ||
"Christoph Mathys [email protected]"] | ||
version = "0.5.1" | ||
version = "0.5.2" | ||
|
||
[deps] | ||
ActionModels = "320cf53b-cc3b-4b34-9a10-0ecb113566a3" | ||
|
@@ -15,4 +15,4 @@ RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" | |
ActionModels = "0.5" | ||
Distributions = "0.25" | ||
RecipesBase = "1" | ||
julia = "1.9" | ||
julia = "1.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using HierarchicalGaussianFiltering | ||
using Aqua | ||
Aqua.test_all(HierarchicalGaussianFiltering, ambiguities = false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Test | ||
using HierarchicalGaussianFiltering | ||
|
||
|
||
@testset "test custom structures" begin | ||
|
||
@testset "Many continuous nodes" begin | ||
nodes = [ | ||
ContinuousInput(name = "u"), | ||
ContinuousInput(name = "u2"), | ||
ContinuousState(name = "x1"), | ||
ContinuousState(name = "x2"), | ||
ContinuousState(name = "x3"), | ||
ContinuousState(name = "x4"), | ||
ContinuousState(name = "x5"), | ||
] | ||
|
||
edges = Dict( | ||
("u", "x1") => ObservationCoupling(), | ||
("u2", "x2") => ObservationCoupling(), | ||
("x1", "x2") => DriftCoupling(), | ||
("x1", "x3") => VolatilityCoupling(), | ||
("u2", "x3") => NoiseCoupling(), | ||
("x2", "x4") => VolatilityCoupling(), | ||
("x3", "x5") => DriftCoupling(), | ||
) | ||
|
||
hgf = init_hgf(nodes = nodes, edges = edges, verbose = false) | ||
|
||
update_hgf!(hgf, [1, 1]) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using Test | ||
using HierarchicalGaussianFiltering | ||
|
||
@testset "Testing nonlinear transforms" begin | ||
|
||
@testset "Sinoid transform" begin | ||
nodes = [ | ||
ContinuousInput(name = "u"), | ||
ContinuousState(name = "x1"), | ||
ContinuousState(name = "x2"), | ||
] | ||
|
||
base = function (x, parameters::Dict) | ||
sin(x) | ||
end | ||
first_derivative = function (x, parameters::Dict) | ||
cos(x) | ||
end | ||
second_derivative = function (x, parameters::Dict) | ||
-sin(x) | ||
end | ||
transform_parameters = Dict() | ||
|
||
edges = Dict( | ||
("u", "x1") => ObservationCoupling(), | ||
("x1", "x2") => DriftCoupling( | ||
2, | ||
NonlinearTransform( | ||
base, | ||
first_derivative, | ||
second_derivative, | ||
transform_parameters, | ||
), | ||
), | ||
) | ||
|
||
hgf = init_hgf(nodes = nodes, edges = edges, verbose = false) | ||
|
||
update_hgf!(hgf, 1) | ||
end | ||
end |
d931cd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
minor bugfixes
d931cd1
There was a problem hiding this comment.
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/106483
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
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:
d931cd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
Minor bugfixes
Added Aqua tests
d931cd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request updated: JuliaRegistries/General/106483
Tagging
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: