-
Notifications
You must be signed in to change notification settings - Fork 12
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 #134 from ilabcode/dev
version 0.5.0
- Loading branch information
Showing
79 changed files
with
4,147 additions
and
4,497 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
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
*.jl.*.cov | ||
*.jl.cov | ||
*.jl.mem | ||
/docs/build/ | ||
.DS_Store | ||
.vscode | ||
|
||
testing_script*.jl | ||
settings.json | ||
|
||
Manifest.toml | ||
docs/Manifest.toml | ||
test/Manifest.toml | ||
/docs/src/generated_markdowns/*.md | ||
|
||
/docs/src/generated | ||
/docs/src/index.md | ||
/docs/build/ | ||
/build |
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,15 +4,15 @@ authors = [ "Peter Thestrup Waade [email protected]", | |
"Anna Hedvig Møller [email protected]", | ||
"Jacopo Comoglio [email protected]", | ||
"Christoph Mathys [email protected]"] | ||
version = "0.4.0" | ||
version = "0.5.0" | ||
|
||
[deps] | ||
ActionModels = "320cf53b-cc3b-4b34-9a10-0ecb113566a3" | ||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" | ||
|
||
[compat] | ||
ActionModels = "0.4" | ||
ActionModels = "0.5" | ||
Distributions = "0.25" | ||
RecipesBase = "1" | ||
julia = "1.9" |
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,43 @@ | ||
using ActionModels, HierarchicalGaussianFiltering | ||
using CSV, DataFrames | ||
using Plots, StatsPlots | ||
using Distributions | ||
|
||
|
||
# Get the path for the HGF superfolder | ||
hgf_path = dirname(dirname(pathof(HierarchicalGaussianFiltering))) | ||
# Add the path to the data files | ||
data_path = hgf_path * "/docs/src/tutorials/data/" | ||
|
||
#Load data | ||
data = CSV.read(data_path * "classic_cannonball_data.csv", DataFrame) | ||
inputs = data[(data.ID.==20).&(data.session.==1), :].outcome | ||
|
||
#Create HGF | ||
hgf = premade_hgf("JGET", verbose = false) | ||
#Create agent | ||
agent = premade_agent("hgf_gaussian", hgf) | ||
#Set parameters | ||
parameters = Dict( | ||
"action_noise" => 1, | ||
("u", "input_noise") => 0, | ||
("x", "initial_mean") => first(inputs) + 2, | ||
("x", "initial_precision") => 0.001, | ||
("x", "volatility") => -8, | ||
("xvol", "volatility") => -8, | ||
("xnoise", "volatility") => -7, | ||
("xnoise_vol", "volatility") => -2, | ||
("x", "xvol", "coupling_strength") => 1, | ||
("xnoise", "xnoise_vol", "coupling_strength") => 1, | ||
) | ||
set_parameters!(agent, parameters) | ||
reset!(agent) | ||
|
||
#Simulate updates and actions | ||
actions = give_inputs!(agent, inputs); | ||
#Plot belief trajectories | ||
plot_trajectory(agent, "u") | ||
plot_trajectory!(agent, "x") | ||
plot_trajectory(agent, "xvol") | ||
plot_trajectory(agent, "xnoise") | ||
plot_trajectory(agent, "xnoise_vol") |
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
Oops, something went wrong.
f00c50c
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
f00c50c
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/104963
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:
f00c50c
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:
Breaking changes
f00c50c
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/104963
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: