Skip to content

Commit

Permalink
move back to _
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilija Vukotic committed Aug 4, 2020
1 parent 8644bfb commit 3f90145
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# gym-cache
# gym_cache
OpenAI based Gym environments for training RL caching agent

install it:
<code>
pip install gym-cache
pip install gym_cache
</code>

import it like this:

<code>
import gym

gym.make('gym-cache:Cache-v0')
gym.make('gym_cache:Cache-v0')
</code>


Expand Down
6 changes: 3 additions & 3 deletions gym-cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# discrete action cache
register(
id='Cache-v0',
entry_point='gym-cache.envs:CacheEnv',
entry_point='gym_cache.envs:CacheEnv',
kwargs={
'InputData': 'data/MWT2_processed',
'CacheSize': 100 * 1024 * 1024 * 1024
Expand All @@ -18,7 +18,7 @@

register(
id='Cache-large-v0',
entry_point='gym-cache.envs:CacheEnv',
entry_point='gym_cache.envs:CacheEnv',
kwargs={
'InputData': 'data/MWT2_processed',
'CacheSize': 100 * 1024 * 1024 * 1024
Expand All @@ -31,7 +31,7 @@
# continuous action cache
register(
id='Cache-continuous-v0',
entry_point='gym-cache.envs:CacheContinousEnv',
entry_point='gym_cache.envs:CacheContinousEnv',
kwargs={
'InputData': 'data/MWT2_processed',
'CacheSize': 100 * 1024 * 1024 * 1024
Expand Down
4 changes: 2 additions & 2 deletions gym-cache/envs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from gym-cache.envs.cache_env import CacheEnv
from gym-cache.envs.cache_continous import CacheContinousEnv
from gym_cache.envs.cache_env import CacheEnv
from gym_cache.envs.cache_continous import CacheContinousEnv
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
long_description = fh.read()

setuptools.setup(
name='gym-cache',
version='1.0.0',
name='gym_cache',
version='1.0.1',
install_requires=[
'gym>=0.2.3',
'pandas>=0.24.2',
Expand All @@ -17,7 +17,7 @@
description="gym environment simulating file cache.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ivukotic/gym-cache",
url="https://github.com/ivukotic/gym_cache",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
Expand Down
2 changes: 1 addition & 1 deletion unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import gym

env = gym.make('gym-cache:Cache-v0')
env = gym.make('gym_cache:Cache-v0')
env.reset()

total_reward = 0
Expand Down

0 comments on commit 3f90145

Please sign in to comment.