-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5a6fde
commit 785dde0
Showing
7 changed files
with
78 additions
and
82 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,24 +1,43 @@ | ||
# Implemented Sampler | ||
# Samplers | ||
|
||
## Defining a Sampler | ||
|
||
In this section, we outline the requirements and guidelines for defining a belief `Sampler`. | ||
|
||
### Interface | ||
|
||
The `Sampler` interface only has one method: the [functor](https://docs.julialang.org/en/v1/manual/methods/#Function-like-objects). For example, if you wanted to implement your own `Sampler`, you could write something like this | ||
|
||
```julia | ||
struct MySampler <: Compressor | ||
foo | ||
bar | ||
end | ||
|
||
# functor definition | ||
function (c::MySampler)(pomdp::POMDP) | ||
# YOUR CODE HERE | ||
end | ||
``` | ||
|
||
## Implemented Sampler | ||
|
||
CompressedBeliefMDPs provides the following generic belief samplers: | ||
- an exploratory belief expansion sampler | ||
- a [Policy](https://juliapomdp.github.io/POMDPs.jl/latest/api/#POMDPs.Policy) rollout sampler | ||
- an [ExplorationPolicy](https://juliapomdp.github.io/POMDPs.jl/latest/POMDPTools/policies/#Exploration-Policies) rollout sampler | ||
|
||
## Exploratory Belief Expansion | ||
|
||
### Exploratory Belief Expansion | ||
```@docs | ||
BeliefExpansionSampler | ||
``` | ||
|
||
## Policy Sampler | ||
|
||
### Policy Sampler | ||
```@docs | ||
PolicySampler | ||
``` | ||
|
||
## ExplorationPolicy Sampler | ||
|
||
### ExplorationPolicy Sampler | ||
```@docs | ||
ExplorationPolicySampler | ||
``` |