Examples

This gallery contains examples demonstrating the functionality of scikit-agent. The examples are organized by topic and show how to use the various modules and classes in practical scenarios.

Each example is designed to be self-contained and can be run independently. The examples demonstrate real-world usage patterns and best practices for using scikit-agent in your research and applications. Monte Carlo simulation is demonstrated within the model examples (the consumption-portfolio and resource extraction walkthroughs both simulate their models).

Algorithms

This section contains examples of different algorithms available in scikit-agent. These examples demonstrate how to use various solution methods, optimization algorithms, and numerical techniques.

Solving a Block Directly (Non-Recurring)

Solving a Block Directly (Non-Recurring)

Training a Policy Network Against a Known Solution

Training a Policy Network Against a Known Solution

The Maliar Training Loop on a Model With No Closed-Form Solution

The Maliar Training Loop on a Model With No Closed-Form Solution

PPO via Stable-Baselines3 on the D-4 Benchmark

PPO via Stable-Baselines3 on the D-4 Benchmark

Economic Models

This section contains examples demonstrating how to use and create economic models with scikit-agent. These examples show how to implement various economic theories and models using the framework.

Examples include consumption-savings models, portfolio choice problems, and other standard economic models that can be solved using reinforcement learning and other computational methods.

Resource Extraction Model

Resource Extraction Model

Consumption-Saving-Portfolio Model

Consumption-Saving-Portfolio Model

Strategic Relevance: Solving the Tree Killer

Strategic Relevance: Solving the Tree Killer

Benchmark Consumption Models

Benchmark Consumption Models

Gallery generated by Sphinx-Gallery