Skip to main content

This repository contains a PIP package which is an OpenAI environment for simulating an enironment in which bananas get sold.

Installation

Install the OpenAI gym.

Then install this package via

pip install -e .

Usage

import gym
import gym_banana

env = gym.make('Banana-v0')

See https://github.com/matthiasplappert/keras-rl/tree/master/examples for some examples.

The Environment

Imagine you are selling bananas. One at a time. And the bananas get bad pretty quickly. Let's say in 3 days. The probability that I will sell the banana is given by

$$p(x) = (1+e)/(1. + e^(x+1))$$

where x-1 is my profit. This x-1 is my reward. If I don't sell the banana, the agent gets a reward of -1 (the price of the banana).

Metadata

Release files for gym-banana 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gym-banana 0.0.3
File Size Uploaded Provenance Actions
gym_banana-0.0.3.tar.gz 4.4 kB Without provenance Details for gym_banana-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gym-banana 0.0.3
File Interpreter ABI Platform Actions
gym_banana-0.0.3-py3-none-any.whl Python 3 none any Details for gym_banana-0.0.3-py3-none-any.whl

Total release size: 8.9 kB

Release files / gym_banana-0.0.3.tar.gz

Download URL gym_banana-0.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a78405f287b9ae5872ab6514b8d013696318b4017d3a9b1c8f889ffdf17ccab0
BLAKE2b-256 checksum
How to use checksums
39d61722a6bfa526408570503c311f64de36eda776659f5eaa9b5b6824ea07e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / gym_banana-0.0.3-py3-none-any.whl

Download URL gym_banana-0.0.3-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19aec1c3fa2b5d9b584a2bbdc68e4b2e2b2e2071a70497b222b667611212a688
BLAKE2b-256 checksum
How to use checksums
ce3f234dc47cfc3f15cc09008ea9ef4331e00703553ac81dbec3ab141f71c2f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Security for gym-banana 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page