NinaWie / guided-cost-learning

Guided cost learning for mobility behavior

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guided Cost Learning

This repo is a working implementation of guided cost learning (https://arxiv.org/abs/1603.00448) for discrete action space. Currently, it supports the CartPole-v0 environment.

How to run:

$ python3.8 main.py 

Description of files:

  • generating_expert.py: Generates an expert on CartPole, by training vanilla policy gradient, and finally stores trained trajecteries as expert samples at expert_samples.
  • experts/PG.py: Implementation of vanilla policy gradient. This is reused at several places.
  • main.py: Contains the main implementation of GCL.

Results:

About

Guided cost learning for mobility behavior


Languages

Language:Python 100.0%