Skip to content

Commit

Permalink
Test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan7773 committed Nov 5, 2024
1 parent 27eb90c commit e776320
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ using Literate
DocMeta.setdocmeta!(ActiveInference, :DocTestSetup, :(using ActiveInference); recursive=true)

# Trying to make the output appear in the markdown_files folder without luck
markdown_path = raw"src\markdown_files"
Literate.markdown(raw"docs\src\julia_files\Introduction.jl", outputdir=joinpath(@__DIR__, markdown_path), documenter=true)
# markdown_path = raw"src\markdown_files"
# Literate.markdown(raw"docs\src\julia_files\Introduction.jl", outputdir=joinpath(@__DIR__, markdown_path), documenter=true)

makedocs(;
modules=[ActiveInference, ActiveInference.Environments],
Expand Down
11 changes: 10 additions & 1 deletion docs/src/julia_files/GenerativeModelCreation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@
# The generative model is the parameters that constitute the agent's beliefs on how the hidden states of the environment generates observations based on states, and how hidden underlying states changes over time.
# In the generative model is also the beliefs of how the agent through actions can influence the states of the environment. Together this holds the buidling blocks that allows for the perception-action loop.

# There are five main buidling blocks of the generative model
# There are five main buidling blocks of the generative model which are; A, B, C, D, and E.
# Each of these contain parameters that describe the agent's beliefs about the environment.
# We will now go through each of these conecptually one at a time.

# ## A
# A is the observation likelihood model, and describes the agent's beliefs about how the hidden states of the environment generates observations.
# Practically in this package, and other POMDP implemantations as well, this is described through a series of categorical distributions, meaning that for each observation, there is a categorical probability distribution over how likely each hidden state is to generate that observation.
# Let us for example imagine a simple case, where the agent is in a four location state environment, could be a 2x2 gridworld. In this case, there would be one obseration linked to each hidden state, and A then maps the agent's belief of how likely each hidden location state is to generate each observation.
# The agent can then use this belief to infer what state it is in based on the observation it receives. Let's look at an example A, which in this case would be a 4x4 matrix:




0 comments on commit e776320

Please sign in to comment.