Skip to content

Adaptive stress testing of black-box systems within POMDPs.jl

License

Notifications You must be signed in to change notification settings

baoluomeng/POMDPStressTesting.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POMDPStressTesting.jl

Documentation Build Status codecov

Adaptive stress testing of black-box systems, implemented within the POMDPs.jl ecosystem.

See the documentation for more details.

Interface

To stress test a new system, the user has to define the GrayBox and BlackBox interface outlined in src/GrayBox.jl and src/BlackBox.jl.

GrayBox Interface

The GrayBox simulator and environment interface includes:

  • GrayBox.Simulation type to hold simulation variables
  • GrayBox.environment(sim::Simulation) to return the collection of environment distributions
  • GrayBox.transition!(sim::Simulation) to transition the simulator, returning the log-likelihood

BlackBox Interface

The BlackBox system interface includes:

  • BlackBox.initialize!(sim::Simulation) to initialize/reset the system under test
  • BlackBox.evaluate!(sim::Simulation) to evaluate/execute the system under test
  • BlackBox.distance(sim::Simulation) to return how close we are to an event
  • BlackBox.isevent(sim::Simulation) to indicate if a failure event occurred
  • BlackBox.isterminal(sim::Simulation) to indicate the simulation is in a terminal state

Functions ending with ! may modify the Simulation object in place.

Solvers

Several solvers are implemented.

Reinforcement learning solvers

Deep reinforcement learning solvers1

Stochastic optimization solvers

Baseline solvers

Example

Example Notebook

An example implementation of the AST interface is provided for the Walk1D problem:

Installation

Install RLInterface.jl then the POMDPStressTesting.jl package via:

using Pkg
pkg"add https://github.com/JuliaPOMDP/RLInterface.jl"
pkg"add https://github.com/sisl/POMDPStressTesting.jl"

Testing

To run the test suite, you can use the Julia package manager.

] test POMDPStressTesting

Contributing

We welcome contributions! Please fork the repository and submit a new Pull Request.


Package maintained by Robert Moss: [email protected]

1 TRPO and PPO thanks to Shreyas Kowshik's initial implementation.

About

Adaptive stress testing of black-box systems within POMDPs.jl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%