Skip to content

Commit

Permalink
Merge pull request #44 from JuliaPOMDP/pomdptools
Browse files Browse the repository at this point in the history
switched to using POMDPTools
  • Loading branch information
zsunberg authored Jul 25, 2022
2 parents 170414e + cd6d2c6 commit e92cbf9
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 745 deletions.
12 changes: 8 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,32 +1,36 @@
name = "POMDPPolicies"
uuid = "182e52fb-cfd0-5e46-8c26-fd0667c990f4"
version = "0.4.2"
version = "0.4.3"

[deps]
BeliefUpdaters = "8bb6e9a1-7d73-552c-a44a-e5dc5634aac4"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
POMDPModelTools = "08074719-1b2a-587c-a292-00f91cc44415"
POMDPTools = "7588e00f-9cae-40de-98dc-e0c70c48cdd7"
POMDPs = "a93abf59-7444-517b-a68a-c42f96afdd7d"
Parameters = "d96e819e-fc66-5662-9728-84c9c7592b0a"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"

[compat]
BeliefUpdaters = "0.1, 0.2"
Distributions = "0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 0.25"
POMDPModelTools = "0.2, 0.3"
POMDPTools = "0.1"
POMDPs = "0.7.3, 0.8, 0.9"
Parameters = "0.12"
Reexport = "1"
StatsBase = "0.26,0.27,0.28,0.29,0.30,0.31,0.32, 0.33"
julia = "1"

[extras]
BeliefUpdaters = "8bb6e9a1-7d73-552c-a44a-e5dc5634aac4"
POMDPModelTools = "08074719-1b2a-587c-a292-00f91cc44415"
POMDPModels = "355abbd5-f08e-5560-ac9e-8b5f2592a0ca"
POMDPSimulators = "e0d0a172-29c6-5d4e-96d0-f262df5d01fd"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "Random", "POMDPSimulators", "POMDPModels"]
test = ["Test", "Random", "POMDPSimulators", "POMDPModels", "POMDPModelTools", "BeliefUpdaters"]
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
# POMDPPolicies
# ~~POMDPPolicies~~

[![Build Status](https://travis-ci.org/JuliaPOMDP/POMDPPolicies.jl.svg?branch=master)](https://travis-ci.org/JuliaPOMDP/POMDPPolicies.jl)
[![Coverage Status](https://coveralls.io/repos/github/JuliaPOMDP/POMDPPolicies.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaPOMDP/POMDPPolicies.jl?branch=master)
[![](https://img.shields.io/badge/docs-latest-blue.svg)](https://JuliaPOMDP.github.io/POMDPPolicies.jl/latest)

A collection of default policy types for [POMDPs.jl](https://github.com/JuliaPOMDP/POMDPs.jl).

# Installation

```julia
using Pkg
Pkg.add("POMDPPolicies")
```
POMDPPolicies is deprecated and the functionality has been moved to [POMDPTools](https://github.com/JuliaPOMDP/POMDPs.jl/tree/master/lib/POMDPTools). Please use that package instead.
84 changes: 6 additions & 78 deletions src/POMDPPolicies.jl
Original file line number Diff line number Diff line change
@@ -1,85 +1,13 @@
module POMDPPolicies

using LinearAlgebra
using Random
using StatsBase # for Weights
using SparseArrays # for sparse vectors in alpha_vector.jl
using Parameters
using Distributions # For logpdf extenstion in playback policy
Base.depwarn("""
The functionality of POMDPPolicies has been moved to POMDPTools.
using POMDPs
import POMDPs: action, value, solve, updater
Please replace `using POMDPPolicies` with `using POMDPTools`.
""", :POMDPPolicies)

using BeliefUpdaters
using POMDPModelTools
using Reexport

using Base.Iterators # for take

"""
actionvalues(p::Policy, s)
returns the values of each action at state s in a vector
"""
function actionvalues end

export
actionvalues

export
AlphaVectorPolicy,
alphavectors,
alphapairs

include("alpha_vector.jl")

export
FunctionPolicy,
FunctionSolver

include("function.jl")

export
RandomPolicy,
RandomSolver

include("random.jl")

export
VectorPolicy,
VectorSolver,
ValuePolicy

include("vector.jl")

export
StochasticPolicy,
UniformRandomPolicy,
CategoricalTabularPolicy

include("stochastic.jl")

export LinearDecaySchedule,
EpsGreedyPolicy,
SoftmaxPolicy,
ExplorationPolicy,
loginfo

include("exploration_policies.jl")

export
PolicyWrapper,
payload

include("utility_wrapper.jl")

export
showpolicy

include("pretty_printing.jl")

export
PlaybackPolicy

include("playback.jl")
@reexport using POMDPTools.Policies

end
124 changes: 0 additions & 124 deletions src/alpha_vector.jl

This file was deleted.

Loading

2 comments on commit e92cbf9

@zsunberg
Copy link
Member Author

Choose a reason for hiding this comment

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

@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/64891

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 v0.4.3 -m "<description of version>" e92cbf99c1149c15e78f6be84cd39a01da9aee05
git push origin v0.4.3

Please sign in to comment.