Skip to main content

A sample but effective drl lib.

Project description

drlgeb

A sample DRL lib use tf.keras and gym. Just writing ...

Now just implement the batch a3c, other algorithms will be updated in the future.

Requirement

  • Linux/windows/osx
  • python3.8
  • tensorflow2.4
  • gym[atari]
  • numpy

Installation

pip install drlgeb

Get start

A3C

from drlgeb.ac import A3C



env_id = "SpaceInvaders-v0"
agent = A3C(env_id=env_id)

# train
agent.learn()

# test
model_path = "..."
agent.play(episodes=5, model_path=model_path)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drlgeb-0.0.1.tar.gz (13.6 kB view hashes)

Uploaded Source

Built Distribution

drlgeb-0.0.1-py3-none-any.whl (18.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page