I hereby claim:
- I am g-leech on github.
- I am gleech (https://keybase.io/gleech) on keybase.
- I have a public key ASAWEIp86quo_chXtmK_qtp2j6m2cZjhhNZFZ8YZvWlROQo
To claim this, I am signing this object:
| from ai_safety_gridworlds.environments.shared.safety_game import Actions | |
| from hashlib import sha1 | |
| import numpy | |
| import time | |
| from IPython import display | |
| import copy | |
| env = sokoban_game(level=0) | |
| ACTIONS = [ a for a in Actions if a is not Actions.QUIT ] |
| # Making sure grayscale doesn't hide objects | |
| import numpy as np | |
| from ai_safety_gridworlds.environments.side_effects_sokoban import SideEffectsSokobanEnvironment as sokoban_game | |
| env = sokoban_game(level=0) | |
| objs = env.reset().observation['board'] | |
| print(objs) | |
| WALL = 0 |
| import time | |
| from IPython import display | |
| from ai_safety_gridworlds.environments.shared.safety_game import Actions | |
| def get_frame(step, x, y): | |
| color_state = step.observation['RGB'] | |
| return np.moveaxis(color_state, x, y) |
| previous = np.array([ | |
| [152, 152, 152, 152, 152, 152], | |
| [152, 219, 134, 152, 152, 152], | |
| [152, 219, 78, 219, 219, 152], | |
| [152, 152, 219, 219, 219, 152], | |
| [152, 152, 152, 219, 129, 152], | |
| [152, 152, 152, 152, 152, 152] | |
| ]) | |
| current = np.array([ |
| import numpy as np | |
| from ai_safety_gridworlds.environments.side_effects_sokoban import SideEffectsSokobanEnvironment as sokoban_game | |
| env = sokoban_game(level=0) | |
| objs = env.reset().observation['board'] | |
| print(objs) | |
| WALL = 0 | |
| SPACE = 1 |
| import numpy as np | |
| from sklearn import linear_model | |
| from sklearn.metrics import mean_squared_error, r2_score | |
| # Monthly data, Nov-08 to Mar-13 | |
| months = np.array(range(0,53)) | |
| ffws = np.array([ 17400, 15100, 21000, 19800, 23400, 21800, 22000, 22700, 22900, 20500, 22000, 21500, 20800, 17000, 22100, 21600, 23600, 21100, 20200, 21300, 21300, 19700, 20800, 19000, 19900, 15700, 21900, 20800, 22800, 17000, 17300, 17100, 16700, 16600, 17800, 18100, 18400, 14700, 18500, 16900, 17200, 15200, 16600, 15700, 16500, 16400, 15800, 16900, 15800, 10400, 13600, 10200, 7700 ] ) | |
| regr = linear_model.LinearRegression() | |
| regr.fit(months.reshape(-1, 1), ffws) |
I hereby claim:
To claim this, I am signing this object: