Skip to content

Instantly share code, notes, and snippets.

@sparseinference
sparseinference / cartpolev1.py
Created March 9, 2017 15:05
Solution for OpenAI problem "CartPole-V1".
"""
File: cartpolev1.py
Created: 2017-03-09
By Peter Caven, peter@sparseinference.com
Description:
-- Python 3.6 --
Solve the CartPole-v1 problem:
- this is the same solution as for the 'CartPole-v0' problem, with the episode length extended.
@sparseinference
sparseinference / cartpole.py
Created March 9, 2017 04:59
Solution for CartPole-v0
"""
File: cartpole.py
Created: 2017-03-06
By Peter Caven, peter@sparseinference.com
Description:
-- Python 3.6 --
Solve the CartPole-v0 problem:
- observed features are expanded with a random transform to ensure linear separability.