author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
154,209
16.03.2019 05:03:04
-32,400
3d6bde6c15075df6fa218dba472eff421f18b6ab
add r2d2_sac to algos
[ { "change_type": "ADD", "old_path": null, "new_path": "machina/algos/r2d2_sac.py", "diff": "+\"\"\"\n+This is an implementation of R2D2(Soft Actor Critic ver).\n+See https://openreview.net/pdf?id=r1lyTjAqYX and https://arxiv.org/abs/1801.01290\n+\"\"\"\n+\n+import torch\n+import torch.nn as nn\n+\n+...
Python
MIT License
deepx-inc/machina
add r2d2_sac to algos
154,209
16.03.2019 05:04:01
-32,400
419c3c67fbf67d74852123ae3e6f51ee93336368
add run_r2d2_sac
[ { "change_type": "ADD", "old_path": null, "new_path": "example/run_r2d2_sac.py", "diff": "+\"\"\"\n+An example of R2D2(Soft Actor Critic ver.).\n+\"\"\"\n+\n+import argparse\n+import copy\n+import json\n+import os\n+from pprint import pprint\n+\n+import numpy as np\n+import torch\n+import torch.nn a...
Python
MIT License
deepx-inc/machina
add run_r2d2_sac
154,209
16.03.2019 10:10:15
-32,400
03c3e0389ec00c12e451c9d617deb3289fd66f1f
add td_losses to return
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -336,8 +336,6 @@ def r2d2_sac(pol, qfs, targ_qfs, log_alpha, batch, gamma, sampling=1, burn_in_le\ndones = batch['dones'][burn_in_length: -1]\nh_masks = batch['h_masks'][burn_in...
Python
MIT License
deepx-inc/machina
add td_losses to return
154,209
16.03.2019 10:11:26
-32,400
1e01cf3cb77e9eef67772fd631e511487a6b27cb
add update_epi_pris option to update_epis
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -3,11 +3,32 @@ These are functions which is applied to trajectory.\n\"\"\"\nimport torch\n+import numpy as np\nfrom machina import loss_functional as lf\n+from machina...
Python
MIT License
deepx-inc/machina
add update_epi_pris option to update_epis
154,209
16.03.2019 10:12:41
-32,400
2136835a25446df4edd4bc792923a01c11b9a187
add compute_seq_pris
[ { "change_type": "MODIFY", "old_path": "machina/traj/epi_functional.py", "new_path": "machina/traj/epi_functional.py", "diff": "@@ -47,7 +47,7 @@ def set_all_pris(data, pri):\nreturn data\n-def compute_pris(data, qf, targ_qf, targ_pol, gamma, continuous=True, deterministic=True, sampling=1, alpha=0....
Python
MIT License
deepx-inc/machina
add compute_seq_pris
154,209
16.03.2019 10:13:31
-32,400
cbdaf57fa53771dd8347d3e2027a58f28636ffb0
add prioritized_random_batch_rnn
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -45,7 +45,7 @@ class Traj(object):\nif 'pris' in self.data_map:\nreturn torch.max(self.data_map['pris']).cpu()\nelse:\n- return torch.tensor(1)\n+ return torch.tensor(100)\ndef add_epis(sel...
Python
MIT License
deepx-inc/machina
add prioritized_random_batch_rnn
154,209
16.03.2019 10:23:16
-32,400
c5f9cd02d01e4480cf6f0b7df321ab0fa2c1f212
apply prioritized replay to r2d2_sac
[ { "change_type": "MODIFY", "old_path": "example/run_r2d2_sac.py", "new_path": "example/run_r2d2_sac.py", "diff": "@@ -96,22 +96,22 @@ env.env.seed(args.seed)\nob_space = env.observation_space\nac_space = env.action_space\n-pol_net = PolNetLSTM(ob_space, ac_space) # , h_size=200, cell_size=100)\n+pol...
Python
MIT License
deepx-inc/machina
apply prioritized replay to r2d2_sac
154,209
16.03.2019 12:51:56
-32,400
0c821c031172bcbe0a00bbd0435f512bdd21b9dc
fix shape of tensors in loss function
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -129,7 +129,7 @@ def bellman(qf, targ_qf, targ_pol, batch, gamma, continuous=True, deterministic=\ncontinuous : bool\naction space is continuous or not\nsampling : int\n- Number...
Python
MIT License
deepx-inc/machina
fix shape of tensors in loss function
154,209
16.03.2019 13:01:33
-32,400
e8d3a7abae19464e8cf9d77c1596dae7aabea69d
change how to concatinate tensors from cat and unsqueeze to stack
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -372,14 +372,14 @@ def r2d2_sac(pol, qfs, targ_qfs, log_alpha, batch, gamma, sampling=1, burn_in_le\nsampled_next_obs = next_obs.expand([sampling] + list(next_obs.size()))\n# (t...
Python
MIT License
deepx-inc/machina
change how to concatinate tensors from cat and unsqueeze to stack
154,209
16.03.2019 13:52:33
-32,400
2b0a126f028dc0972904eab6f360d6afde5ec1ae
apply dp_run to qfs and targ_qfs
[ { "change_type": "MODIFY", "old_path": "example/run_r2d2_sac.py", "new_path": "example/run_r2d2_sac.py", "diff": "@@ -165,7 +165,9 @@ while args.max_epis > total_epi:\nif args.data_parallel:\npol.dp_run = True\n+ for qf, targ_qf in zip(qfs, targ_qfs):\nqf.dp_run = True\n+ targ_qf.dp_run = True\nresu...
Python
MIT License
deepx-inc/machina
apply dp_run to qfs and targ_qfs
154,209
16.03.2019 13:54:45
-32,400
4be7a615f70533b081819ffb8941f4b6c20bf546
delete traj from return
[ { "change_type": "MODIFY", "old_path": "example/run_r2d2_sac.py", "new_path": "example/run_r2d2_sac.py", "diff": "@@ -169,7 +169,7 @@ while args.max_epis > total_epi:\nqf.dp_run = True\ntarg_qf.dp_run = True\n- result_dict, off_traj = r2d2_sac.train(\n+ result_dict = r2d2_sac.train(\noff_traj,\npol,...
Python
MIT License
deepx-inc/machina
delete traj from return
154,209
16.03.2019 14:30:47
-32,400
1dfc039c3e5dfb7c4c7518e63ddb3df1839b4f6e
fix length of pris for update epi_pris
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -43,7 +43,7 @@ def update_pris(traj, td_loss, indices, alpha=0.6, epsilon=1e-6, update_epi_pris\nepi_end = traj._epis_index[i]\nbreak\n- pris = traj.data_map['pris'][e...
Python
MIT License
deepx-inc/machina
fix length of pris for update epi_pris
154,209
16.03.2019 15:05:50
-32,400
db8894b78ce47c6db90366ccce85d7b99d1010ba
fix shape of tensor input to pol in train
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -354,14 +354,29 @@ def r2d2_sac(pol, qfs, targ_qfs, log_alpha, batch, gamma, sampling=1, burn_in_le\npol.hs = a_hs\n# (time_seq, ['mean', 'log_std', 'hs'], *)\nwith torch.no_gra...
Python
MIT License
deepx-inc/machina
fix shape of tensor input to pol in train
154,209
16.03.2019 15:42:01
-32,400
01ffdd80592edfc2a19a52656f5683c23b6caf95
add reset of pol, qfs and targ_qfs to loss function
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -325,6 +325,11 @@ def r2d2_sac(pol, qfs, targ_qfs, log_alpha, batch, gamma, sampling=1, burn_in_le\ntime_seq, batch_size, *_ = batch['obs'].size()\ntrain_length = time_seq - bur...
Python
MIT License
deepx-inc/machina
add reset of pol, qfs and targ_qfs to loss function
154,209
16.03.2019 19:48:19
-32,400
66c4a49d13bf1408902899b3407ed62a3a731562
change how to delete hs from [1:] to remove('hs')
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -359,8 +359,9 @@ def r2d2_sac(pol, qfs, targ_qfs, log_alpha, batch, gamma, sampling=1, burn_in_le\n# (time_seq, ['mean', 'log_std', 'hs'], *)\nwith torch.no_grad():\n_bi_pd_para...
Python
MIT License
deepx-inc/machina
change how to delete hs from [1:] to remove('hs')
154,209
16.03.2019 20:19:43
-32,400
a68f1801f0bda02ae1f43408b3b799b42a14fe05
change how to delete hs from [1:] to remove('hs') (fix)
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -365,7 +365,7 @@ def r2d2_sac(pol, qfs, targ_qfs, log_alpha, batch, gamma, sampling=1, burn_in_le\nbi_pd_params = []\nfor params in zip(*separated_bi_pd_params):\nparams_dict = ...
Python
MIT License
deepx-inc/machina
change how to delete hs from [1:] to remove('hs') (fix)
154,209
16.03.2019 20:21:26
-32,400
223483397dca0815baadcf4e1bed79a9121a387e
add QNetLSTM to tests
[ { "change_type": "MODIFY", "old_path": "tests/simple_net.py", "new_path": "tests/simple_net.py", "diff": "@@ -221,6 +221,45 @@ class VNetLSTM(nn.Module):\nreturn outs, hs\n+class QNetLSTM(nn.Module):\n+ def __init__(self, ob_space, ac_space, h_size=1024, cell_size=512):\n+ super(QNetLSTM, self).__in...
Python
MIT License
deepx-inc/machina
add QNetLSTM to tests
154,209
16.03.2019 20:32:31
-32,400
466e4c4cf6041f5e5027f3e74297c5cf19588610
add test code of r2d2_sac
[ { "change_type": "MODIFY", "old_path": "tests/test_algos.py", "new_path": "tests/test_algos.py", "diff": "@@ -17,7 +17,7 @@ import machina as mc\nfrom machina.pols import GaussianPol, CategoricalPol, MultiCategoricalPol\nfrom machina.pols import DeterministicActionNoisePol, ArgmaxQfPol, MPCPol, Rand...
Python
MIT License
deepx-inc/machina
add test code of r2d2_sac
154,212
16.03.2019 20:38:15
-32,400
53a8ae6811cf93db49956c7df8b09b0a6c900e90
fix for data_parallel
[ { "change_type": "MODIFY", "old_path": "example/run_r2d2_sac.py", "new_path": "example/run_r2d2_sac.py", "diff": "@@ -100,23 +100,23 @@ ac_space = env.action_space\npol_net = PolNetLSTM(ob_space, ac_space)\npol = GaussianPol(ob_space, ac_space, pol_net, rnn=True,\n- data_parallel=args.data_parallel,...
Python
MIT License
deepx-inc/machina
fix for data_parallel
154,212
16.03.2019 21:12:04
-32,400
e5544cf471e20d63c6058fd34d8ba343397f5fd2
add explanation of r2d2
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -125,7 +125,7 @@ This class enables stable policy learning.\n+ [Trust Region Policy Optimization](https://arxiv.org/abs/1502.05477) (RNN is supported.)\n### Model-Free Off-Policy RL\nThis class enables high gene...
Python
MIT License
deepx-inc/machina
add explanation of r2d2
154,206
16.03.2019 15:49:56
-10,800
a0f228167a8ff5d9f520d9c1fe6697bfcc1c6ad8
[WIP] add matrix
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -121,14 +121,8 @@ To obtain this composability, machina's sampling method is deliberatly restricte\nThe algorithms classes described below are useful for real-world Deep Reinforcement Learning.\n### Model-Free O...
Python
MIT License
deepx-inc/machina
[WIP] add matrix
154,212
17.03.2019 13:24:44
-32,400
3c68335d32f5690698f292a2de01c58c8d011252
allocate traj to traj_device, and then batch is allocated to get_device
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -24,7 +24,7 @@ class Traj(object):\nThis class provides batch methods.\n\"\"\"\n- def __init__(self, max_steps=None):\n+ def __init__(self, max_steps=None, traj_device=None):\nself.data_map...
Python
MIT License
deepx-inc/machina
allocate traj to traj_device, and then batch is allocated to get_device
154,212
17.03.2019 13:38:30
-32,400
2bfe7cc954d47067ad5eb821f27b1a0259e8ef45
applying traj_device to _concat_data_map
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -60,12 +60,14 @@ class Traj(object):\nfor key in data_map:\nif remain_index is not None:\nself.data_map[key] = torch.cat(\n- [self.data_map[key][self._epis_index[remain_index]:], data_map[k...
Python
MIT License
deepx-inc/machina
applying traj_device to _concat_data_map
154,212
17.03.2019 13:41:18
-32,400
17fdb4fab24ba1c19bdacac9831e8004b7998dd0
fix ou noise argument in run_ddpg
[ { "change_type": "MODIFY", "old_path": "example/run_ddpg.py", "new_path": "example/run_ddpg.py", "diff": "@@ -98,7 +98,7 @@ pol = DeterministicActionNoisePol(ob_space, ac_space, pol_net, noise)\ntarg_pol_net = PolNet(ob_space, ac_space, args.h1, args.h2, deterministic=True)\ntarg_pol_net.load_state_...
Python
MIT License
deepx-inc/machina
fix ou noise argument in run_ddpg
154,212
17.03.2019 14:14:04
-32,400
3f950f062f2d1d64fd0628bda559d9e4af1ed60d
cpu allocation for off policy RL
[ { "change_type": "MODIFY", "old_path": "example/run_mpc.py", "new_path": "example/run_mpc.py", "diff": "@@ -130,7 +130,7 @@ rand_sampler = EpiSampler(\nepis = rand_sampler.sample(random_pol, max_epis=args.num_random_rollouts)\nepis = add_noise_to_init_obs(epis, args.noise_to_init_obs)\n-traj = Traj(...
Python
MIT License
deepx-inc/machina
cpu allocation for off policy RL
154,212
17.03.2019 14:21:47
-32,400
34aaac8c50ac35cdbc180c1496c5c5368d3e4f81
fix argument of sac
[ { "change_type": "MODIFY", "old_path": "example/run_sac.py", "new_path": "example/run_sac.py", "diff": "@@ -53,6 +53,7 @@ parser.add_argument('--max_steps_per_iter', type=int, default=10000,\nparser.add_argument('--batch_size', type=int, default=256)\nparser.add_argument('--sampling', type=int, defa...
Python
MIT License
deepx-inc/machina
fix argument of sac
154,212
17.03.2019 14:25:32
-32,400
441ce3eb893ab0d208c705acdb0fe12917c14fd5
fix prioritized ddpg
[ { "change_type": "MODIFY", "old_path": "example/run_prioritized_ddpg.py", "new_path": "example/run_prioritized_ddpg.py", "diff": "@@ -23,7 +23,7 @@ from machina.envs import GymEnv\nfrom machina.traj import Traj\nfrom machina.traj import epi_functional as ef\nfrom machina.samplers import EpiSampler\n...
Python
MIT License
deepx-inc/machina
fix prioritized ddpg
154,212
17.03.2019 14:27:35
-32,400
f6e32b667813d048e81efcaf42e7d40d758a24a9
fix update_pris
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj_functional.py", "new_path": "machina/traj/traj_functional.py", "diff": "@@ -31,7 +31,7 @@ def update_pris(traj, td_loss, indices, alpha=0.6, epsilon=1e-6, update_epi_pris\ndata : Traj\n\"\"\"\npris = (torch.abs(td_loss) + epsilon) ** alpha\n-...
Python
MIT License
deepx-inc/machina
fix update_pris
154,212
17.03.2019 14:32:04
-32,400
4d9b48471f1bc30fcb6856119f28bf4e9aeba36b
fix noise shape in prioritized ddpg
[ { "change_type": "MODIFY", "old_path": "example/run_prioritized_ddpg.py", "new_path": "example/run_prioritized_ddpg.py", "diff": "@@ -95,13 +95,13 @@ ob_space = env.observation_space\nac_space = env.action_space\npol_net = PolNet(ob_space, ac_space, args.h1, args.h2, deterministic=True)\n-noise = OU...
Python
MIT License
deepx-inc/machina
fix noise shape in prioritized ddpg
154,212
17.03.2019 14:46:38
-32,400
93510ab4e459696f852dd80e20ab62e8dbbd59f0
add comment for Traj
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -22,6 +22,13 @@ class Traj(object):\nAn episode is a sequence of steps.\nThis class provides batch methods.\n+\n+ Parameters\n+ ----------\n+ max_steps: None or int\n+ Specifying maximum st...
Python
MIT License
deepx-inc/machina
add comment for Traj
154,212
17.03.2019 14:57:59
-32,400
07fe0ad5428818638cce2050550d57408c98196c
fix to using to
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -524,5 +524,5 @@ class Traj(object):\nfor key in keys:\n_batch[key] = pad_sequence(\n[b[key] for b in batch]).to(get_device())\n- _batch['out_masks'] = out_masks.get_device()\n+ _batch['out...
Python
MIT License
deepx-inc/machina
fix to using to
154,212
17.03.2019 15:26:26
-32,400
9f81336fdaea84f19332d457f88e485aa7a2ba75
set all indices to be allocated to cpu
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -134,12 +134,12 @@ class Traj(object):\nself._epis_index = traj._epis_index[:remain_index+1]\ndef _shuffled_indices(self, indices):\n- return indices[torch.randperm(len(indices), device=sel...
Python
MIT License
deepx-inc/machina
set all indices to be allocated to cpu
154,212
17.03.2019 15:48:24
-32,400
dd5f2cf45e423b6d826c3de3777b2e7e8489a28b
fast sampling
[ { "change_type": "MODIFY", "old_path": "machina/traj/traj.py", "new_path": "machina/traj/traj.py", "diff": "@@ -224,11 +224,12 @@ class Traj(object):\n-------\ndata_map : dict of torch.Tensor\n\"\"\"\n- indices = self._get_indices(indices, shuffle=True)\n+ #indices = self._get_indices(indices, shuff...
Python
MIT License
deepx-inc/machina
fast sampling
154,212
17.03.2019 17:40:48
-32,400
0b4b8d7578acb384f3966ae501aff3f068911ff9
fix sign of kl in ppo_kl
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -107,7 +107,7 @@ def pg_kl(pol, batch, kl_beta, ent_beta=0):\n)\nkl_loss = kl_beta * torch.sum(kl * out_masks) / torch.sum(out_masks)\n- pol_loss = -(pol_loss + kl_loss)\n+ pol_...
Python
MIT License
deepx-inc/machina
fix sign of kl in ppo_kl
154,206
17.03.2019 18:04:33
-32,400
2a0cc76eb0d4accbfb41b221ee303671a43fd3bf
Update algo matrix
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -125,12 +125,8 @@ This class enables stable policy learning.\nThis class enables high generalization.\n### Model-Based RL\nThis class enables high sample efficiency.\n-+ [Model Predictive Control](https://arxiv....
Python
MIT License
deepx-inc/machina
Update algo matrix
154,206
17.03.2019 18:09:35
-32,400
27b89efbe33d3abc046b49ddbe5d86186e49e941
change slightly
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -119,18 +119,21 @@ To obtain this composability, machina's sampling method is deliberatly restricte\n## Implemented Algorithms\nThe algorithms classes described below are useful for real-world Deep Reinforcement...
Python
MIT License
deepx-inc/machina
change slightly
154,212
17.03.2019 18:11:38
-32,400
54ecf7fcd08d207cfd856cfebebdbae76c4d49cf
fix to be able to pass epi to ef
[ { "change_type": "MODIFY", "old_path": "machina/traj/epi_functional.py", "new_path": "machina/traj/epi_functional.py", "diff": "@@ -9,6 +9,7 @@ import torch.nn.functional as F\nfrom machina.utils import get_device\nfrom machina import loss_functional as lf\n+from machina.traj import Traj\ndef comput...
Python
MIT License
deepx-inc/machina
fix to be able to pass epi to ef
154,206
17.03.2019 18:36:35
-32,400
a6d63fb60e7bb47fc85583fd9d79872c0dfc3f8b
Recover section name
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -115,6 +115,9 @@ result_dict2 = sac.train(\nYou can see the full example code [here](https://github.com/DeepX-inc/machina/blob/master/example/run_ppo_sac.py).\nTo obtain this composability, machina's sampling me...
Python
MIT License
deepx-inc/machina
Recover section name
154,212
17.03.2019 21:03:16
-32,400
b95af5a7e1435ce0a567cdd03e75abf55ed29724
use testpypi
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -6,7 +6,8 @@ python:\ninstall:\n- pip install --upgrade pip setuptools wheel\n- - pip install --default-timeout=2000 -q -e .\n+ #- pip install --default-timeout=2000 -q -e .\n+ - pip install -i https://test....
Python
MIT License
deepx-inc/machina
use testpypi
154,206
18.03.2019 01:27:16
-32,400
9f98fbee187824a028ebe0f059d027f0c84d6c4e
Add rnn option
[ { "change_type": "MODIFY", "old_path": "example/run_airl.py", "new_path": "example/run_airl.py", "diff": "@@ -26,7 +26,7 @@ from machina.samplers import EpiSampler\nfrom machina import logger\nfrom machina.utils import measure, set_device\n-from simple_net import PolNet, PolNetLSTM, VNet, DiscrimNet...
Python
MIT License
deepx-inc/machina
Add rnn option
154,206
18.03.2019 02:05:07
-32,400
ac233578912de08bd46e26aed3dd9d13e3c471e9
Remove rnn from airl
[ { "change_type": "MODIFY", "old_path": "example/run_airl.py", "new_path": "example/run_airl.py", "diff": "@@ -75,8 +75,6 @@ parser.add_argument('--pol_ent_beta', type=float, default=0,\nparser.add_argument('--discrim_ent_beta', type=float, default=0,\nhelp='Entropy coefficient for discriminator.')\n...
Python
MIT License
deepx-inc/machina
Remove rnn from airl
154,206
18.03.2019 02:23:01
-32,400
cb84b4a4c565c8b8fa97414462f0125b8acbc9bc
Add dp to behavior_clone
[ { "change_type": "MODIFY", "old_path": "example/run_behavior_clone.py", "new_path": "example/run_behavior_clone.py", "diff": "@@ -39,6 +39,8 @@ parser.add_argument('--max_epis', type=int,\nparser.add_argument('--num_parallel', type=int, default=4,\nhelp='Number of processes to sample.')\nparser.add_...
Python
MIT License
deepx-inc/machina
Add dp to behavior_clone
154,206
18.03.2019 16:58:59
-32,400
241aebd9e103e613f0d0b17d18fdea90dac28f44
Minror change
[ { "change_type": "MODIFY", "old_path": "example/run_r2d2_sac.py", "new_path": "example/run_r2d2_sac.py", "diff": "@@ -50,7 +50,7 @@ parser.add_argument('--data_parallel', action='store_true', default=False,\nparser.add_argument('--max_steps_per_iter', type=int, default=10000,\nhelp='Number of steps ...
Python
MIT License
deepx-inc/machina
Minror change
154,206
18.03.2019 18:54:16
-32,400
a326e8e8323abcb99e8d6d7f453869ff2429dbc6
Add web page link
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -203,3 +203,5 @@ You can start machina by checking out this [quickstart](https://github.com/DeepX\nMoreover, you can also check already implemented algorithms in [examples](https://github.com/DeepX-inc/machina/t...
Python
MIT License
deepx-inc/machina
Add web page link
154,213
20.03.2019 11:30:52
-32,400
cd539a0367cac47592185fe9ecdf88a5703e394f
add discrim wrapped by calc_rewards
[ { "change_type": "MODIFY", "old_path": "example/run_diayn.py", "new_path": "example/run_diayn.py", "diff": "@@ -174,7 +174,8 @@ while args.max_episodes > total_epi:\non_traj.add_epis(epis)\non_traj = ef.add_next_obs(on_traj)\n- on_traj = ef.compute_diayn_rews(on_traj, discrim)\n+ on_traj = ef.comput...
Python
MIT License
deepx-inc/machina
add discrim wrapped by calc_rewards
154,206
20.03.2019 12:50:27
-32,400
1df66aa1fd80a91c83129208a65a6659bc8e780b
Add r2d2 link
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -139,7 +139,7 @@ The algorithms classes described below are useful for real-world Deep Reinforcem\n<TD rowspan=\"4\">Model-Free Off-Policy RL</TD>\n<TD rowspan=\"4\"> high generalization</TD>\n<TD><a href=\"http...
Python
MIT License
deepx-inc/machina
Add r2d2 link
154,213
20.03.2019 13:26:11
-32,400
a0ca7dc75aa781c6543bba38d8dc7d915ed5b18e
add diayn test
[ { "change_type": "MODIFY", "old_path": "example/run_diayn.py", "new_path": "example/run_diayn.py", "diff": "@@ -5,7 +5,6 @@ https://arxiv.org/abs/1802.06070\n\"\"\"\nimport os\n-import csv\nimport gym\nimport torch\nimport argparse\n@@ -14,7 +13,6 @@ import pybullet_envs\nimport torch\nimport torch....
Python
MIT License
deepx-inc/machina
add diayn test
154,213
20.03.2019 13:51:27
-32,400
077b70f71c9fe5e63bd481bcabdd728e5211bd9b
fix tensor to as_tensor
[ { "change_type": "MODIFY", "old_path": "machina/traj/epi_functional.py", "new_path": "machina/traj/epi_functional.py", "diff": "@@ -210,7 +210,7 @@ def compute_pseudo_rews(data, rew_giver, state_only=False):\ndef compute_diayn_rews(data, rew_giver):\nepis = data.current_epis\nfor epi in epis:\n- obs...
Python
MIT License
deepx-inc/machina
fix tensor to as_tensor
154,206
22.03.2019 18:15:08
-32,400
a0a24fb5faefa68271e68e91bb3c39e5d0c5eea7
[algos/qtopt] Remove grad_step in result_dict
[ { "change_type": "MODIFY", "old_path": "machina/algos/qtopt.py", "new_path": "machina/algos/qtopt.py", "diff": "@@ -66,4 +66,4 @@ def train(traj,\nqf_losses.append(qf_bellman_loss.detach().cpu().numpy())\nlogger.log(\"Optimization finished!\")\n- return {'QfLoss': qf_losses, 'grad_step': epoch}\n+ r...
Python
MIT License
deepx-inc/machina
[algos/qtopt] Remove grad_step in result_dict
154,212
22.03.2019 18:22:45
-32,400
680f5b1954945ffca6fe49609f4005d3369a09fc
fix to sum last dim in entropy
[ { "change_type": "MODIFY", "old_path": "machina/pds/categorical_pd.py", "new_path": "machina/pds/categorical_pd.py", "diff": "@@ -30,4 +30,4 @@ class CategoricalPd(BasePd):\ndef ent(self, params):\npi = params['pi']\n- return Categorical(pi).entropy()\n+ return torch.sum(Categorical(pi).entropy(), d...
Python
MIT License
deepx-inc/machina
fix to sum last dim in entropy
154,206
23.03.2019 17:02:14
-32,400
e1ef5f465ebabd57cf1b43defdf1ed97dbf4ddad
[example/run_airl] Fix argument
[ { "change_type": "MODIFY", "old_path": "example/run_airl.py", "new_path": "example/run_airl.py", "diff": "@@ -205,8 +205,9 @@ if args.rl_type == 'ppo_kl':\nif args.pretrain:\nwith measure('bc pretrain'):\n+ for _ in range(args.bc_epoch):\n_ = behavior_clone.train(\n- expert_traj, pol, optim_pol, arg...
Python
MIT License
deepx-inc/machina
[example/run_airl] Fix argument
154,206
23.03.2019 17:02:22
-32,400
4c7a9ec6299d5cf16c493e9567d7b27b5ad2e83c
[example/run_gail] Fix arguments
[ { "change_type": "MODIFY", "old_path": "example/run_gail.py", "new_path": "example/run_gail.py", "diff": "@@ -188,8 +188,9 @@ if args.rl_type == 'ppo_kl':\nif args.pretrain:\nwith measure('bc pretrain'):\n+ for _ in range(args.bc_epoch):\n_ = behavior_clone.train(\n- expert_traj, pol, optim_pol, arg...
Python
MIT License
deepx-inc/machina
[example/run_gail] Fix arguments
154,206
23.03.2019 17:11:59
-32,400
beb03b15ec4024724c71a52376f54322d96cded2
[loss_functional] Combine 2 types of loss
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "@@ -656,30 +656,18 @@ def cross_ent_diayn(discrim, batch, num_skill):\nreturn discrim_loss\n-def density_ratio_rew_cross_ent(rewf, shaping_vf, pol, batch, expert_or_agent, gamma):\...
Python
MIT License
deepx-inc/machina
[loss_functional] Combine 2 types of loss
154,206
23.03.2019 17:12:45
-32,400
4f82cac7ab94efda42b91c09edf146a9f6a53655
[algos/airl] Remove unnecessary code
[ { "change_type": "MODIFY", "old_path": "machina/algos/airl.py", "new_path": "machina/algos/airl.py", "diff": "@@ -13,17 +13,12 @@ from machina.algos import trpo, ppo_kl, ppo_clip\nfrom machina.utils import get_device\n-def update_discrim(rewf, shaping_vf, advf, pol, rew_type, optim_discrim, agent_ba...
Python
MIT License
deepx-inc/machina
[algos/airl] Remove unnecessary code
154,206
23.03.2019 17:13:19
-32,400
bf0248c155e0f18fc64f2690902b058a71259eee
[run_airl] Remove unncessary args
[ { "change_type": "MODIFY", "old_path": "example/run_airl.py", "new_path": "example/run_airl.py", "diff": "@@ -72,8 +72,6 @@ parser.add_argument('--lam', type=float, default=0.97,\nhelp='Tradeoff value of bias variance.')\nparser.add_argument('--pol_ent_beta', type=float, default=0,\nhelp='Entropy co...
Python
MIT License
deepx-inc/machina
[run_airl] Remove unncessary args
154,206
23.03.2019 17:16:07
-32,400
3a6005c77e78ce44900558192595d9729ab43e13
[tests/test_algos] Remove unnecessary args
[ { "change_type": "MODIFY", "old_path": "tests/test_algos.py", "new_path": "tests/test_algos.py", "diff": "@@ -633,12 +633,12 @@ class TestAIRL(unittest.TestCase):\nagent_traj.register_epis()\nresult_dict = airl.train(agent_traj, expert_traj, pol, vf, optim_vf, optim_discrim,\n- rewf=rewf, shaping_vf...
Python
MIT License
deepx-inc/machina
[tests/test_algos] Remove unnecessary args
154,206
27.03.2019 09:57:54
-32,400
79129a9b47fc194b84ccb7e622d9fb01d17ddb99
[docs/conf] Minor change
[ { "change_type": "MODIFY", "old_path": "docs/conf.py", "new_path": "docs/conf.py", "diff": "#\nimport os\nimport sys\n-sys.path.insert(0, os.path.abspath('../'))\n+sys.path.insert(0, os.path.abspath('..'))\n# -- Project information -----------------------------------------------------\n@@ -40,6 +40,...
Python
MIT License
deepx-inc/machina
[docs/conf] Minor change
154,206
27.03.2019 09:58:19
-32,400
20d74134e134d787dd51b8ee4e16d2e6e3b777f4
[docs/index] Fix import directroy
[ { "change_type": "MODIFY", "old_path": "docs/index.rst", "new_path": "docs/index.rst", "diff": "@@ -10,18 +10,7 @@ Welcome to machina's documentation!\n:maxdepth: 2\n:caption: Contents:\n- machina.traj\n- machina.algos\n- loss_functional\n- machina.envs\n- machina.samplers\n- machina.prepro\n- machi...
Python
MIT License
deepx-inc/machina
[docs/index] Fix import directroy
154,206
27.03.2019 09:59:05
-32,400
7387245bb54699ab84e1f6f1242357c01748ab69
[state_action_vfuncs/cem~] Fix docstring
[ { "change_type": "MODIFY", "old_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "new_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "diff": "@@ -11,6 +11,7 @@ from torch.distributions import Normal, MultivariateNormal\nclass CEMDeterministicSAVfunc(Dete...
Python
MIT License
deepx-inc/machina
[state_action_vfuncs/cem~] Fix docstring
154,206
27.03.2019 18:26:55
-32,400
63137a7568ffd62c3e5bdb8403ea2d346f6fb196
[loss_functional] Add docs
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "\"\"\"\n-These are functions for loss.\n-Algorithms should be written by combining these functions.\n+ - This module is the main part of :py:mod:`Algorithms<machina.algos>`.\n+ - I...
Python
MIT License
deepx-inc/machina
[loss_functional] Add docs
154,206
27.03.2019 18:27:09
-32,400
d2b1f6f8badc488459c349a7950b02fc102801a5
[traj/__init__] Add docs
[ { "change_type": "MODIFY", "old_path": "machina/traj/__init__.py", "new_path": "machina/traj/__init__.py", "diff": "+\"\"\"\n+- This package is the bockbone of machina.\n+ - :class:`Environment<machina.envs.gym_env.GymEnv>` and :py:mod:`Algorithm<machina.algos>` are seperated by this package.\n+- Tr...
Python
MIT License
deepx-inc/machina
[traj/__init__] Add docs
154,206
28.03.2019 14:20:53
-32,400
5fd2a222f74adf7e69e0b07c4018d678232e2e73
[loss_functional] Fix link
[ { "change_type": "MODIFY", "old_path": "machina/loss_functional.py", "new_path": "machina/loss_functional.py", "diff": "\"\"\"\n- This module is the main part of :py:mod:`Algorithms<machina.algos>`.\n- If you'd like to only loss function of certain algorithm, you have only to change this module.\n- ...
Python
MIT License
deepx-inc/machina
[loss_functional] Fix link
154,206
28.03.2019 14:21:07
-32,400
50d5900457e2a76fd06c13a9047b3303bd78dbd8
[algos/__init__] Add docs
[ { "change_type": "MODIFY", "old_path": "machina/algos/__init__.py", "new_path": "machina/algos/__init__.py", "diff": "+\"\"\"\n+- This package trains :class:`Policy<machina.pols.base.BasePol>`, :class:`V function<machina.vfuncs.state_action_vfuncs.base.BaseSAVfunc>`, :class:`Q function<machina.vfunc...
Python
MIT License
deepx-inc/machina
[algos/__init__] Add docs
154,206
28.03.2019 16:05:25
-32,400
7f578a050bdbab7841ad6ba0c07ab49f7b27b3cc
[tests/env] Create copy of pendulum
[ { "change_type": "ADD", "old_path": null, "new_path": "tests/env.py", "diff": "+\"\"\"\n+This is a Dict space version of Pendulum.\n+\"\"\"\n+import gym\n+from gym import spaces\n+from gym.utils import seeding\n+import numpy as np\n+from os import path\n+\n+class PendulumEnv(gym.Env):\n+ metadata = ...
Python
MIT License
deepx-inc/machina
[tests/env] Create copy of pendulum
154,206
28.03.2019 16:06:12
-32,400
db27d4f4a8d2eac370d8c3aad55bb9f9f8f0b143
[tests/env] Change obs from array to dict
[ { "change_type": "MODIFY", "old_path": "tests/env.py", "new_path": "tests/env.py", "diff": "@@ -7,7 +7,7 @@ from gym.utils import seeding\nimport numpy as np\nfrom os import path\n-class PendulumEnv(gym.Env):\n+class PendulumDictEnv(gym.Env):\nmetadata = {\n'render.modes' : ['human', 'rgb_array'],\n...
Python
MIT License
deepx-inc/machina
[tests/env] Change obs from array to dict
154,206
28.03.2019 17:03:21
-32,400
fa9a5bf982faa590e563bc00e7319bdf51f4dd15
[tests/env] Add dict space
[ { "change_type": "MODIFY", "old_path": "tests/env.py", "new_path": "tests/env.py", "diff": "@@ -7,6 +7,7 @@ from gym.utils import seeding\nimport numpy as np\nfrom os import path\n+\nclass PendulumDictEnv(gym.Env):\nmetadata = {\n'render.modes': ['human', 'rgb_array'],\n@@ -19,9 +20,16 @@ class Pend...
Python
MIT License
deepx-inc/machina
[tests/env] Add dict space
154,206
29.03.2019 22:22:57
-32,400
4ba5603e97a433518e9914ad06832adc2edb02d5
[tests/test_env] Add test of flatten2dict
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -8,8 +8,16 @@ import gym\nimport numpy as np\nimport torch\n-from machina.envs import GymEnv, C2DEnv\n-\n+from gym.wrappers import FlattenDictWrapper\n+from machina.envs import GymEnv, C2DEnv, fl...
Python
MIT License
deepx-inc/machina
[tests/test_env] Add test of flatten2dict
154,206
29.03.2019 22:23:33
-32,400
7d0ace62716900923309334af446713639afcf77
[envs/__init__] Add flatten_to_dict
[ { "change_type": "MODIFY", "old_path": "machina/envs/__init__.py", "new_path": "machina/envs/__init__.py", "diff": "@@ -3,3 +3,4 @@ from machina.envs.continuous2discrete_env import C2DEnv\nfrom machina.envs.ac_in_ob_env import AcInObEnv\nfrom machina.envs.rew_in_ob_env import RewInObEnv\nfrom machin...
Python
MIT License
deepx-inc/machina
[envs/__init__] Add flatten_to_dict
154,206
29.03.2019 22:23:52
-32,400
3fcc52d1d222dc2b5983027674486b2e9c9d75dc
[tests/simple] Add PolDictNet
[ { "change_type": "MODIFY", "old_path": "tests/simple_net.py", "new_path": "tests/simple_net.py", "diff": "@@ -7,6 +7,7 @@ import torch.nn as nn\nfrom torch.nn.init import kaiming_uniform_, uniform_\nimport torch.nn.functional as F\nimport gym\n+from machina.envs import flatten_to_dict\ndef mini_weig...
Python
MIT License
deepx-inc/machina
[tests/simple] Add PolDictNet
154,206
30.03.2019 00:38:21
-32,400
dc17b33072184163e8fffb8dc02f971f0e6f9867
[tests/test_env] Use GymEnv
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -32,12 +32,15 @@ def test_continuous2discrete():\ndef test_flatten2dict():\ndict_env = PendulumDictEnv()\n- dict_ob = dict_env.observation_space.sample()\n+ dict_env = GymEnv(dict_env)\n+ dict_ob...
Python
MIT License
deepx-inc/machina
[tests/test_env] Use GymEnv
154,206
30.03.2019 13:52:19
-32,400
fba80617bfd9eeb05cae87414aa65bfa06c5c192
[tests] Remove dict_keys
[ { "change_type": "MODIFY", "old_path": "tests/simple_net.py", "new_path": "tests/simple_net.py", "diff": "@@ -329,11 +329,10 @@ class DiaynDiscrimNet(nn.Module):\nclass PolDictNet(nn.Module):\n- def __init__(self, ob_space, ac_space, dict_keys, h1=200, h2=100, deterministic=False):\n+ def __init__(s...
Python
MIT License
deepx-inc/machina
[tests] Remove dict_keys
154,206
30.03.2019 16:53:59
-32,400
49e73007239e9b8532beee0233334556d6d6c700
[tests/test_env] Add max_episode_steps
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -18,7 +18,13 @@ from machina.traj import Traj\nfrom machina.traj import epi_functional as ef\nfrom machina.samplers import EpiSampler\nfrom machina.algos import ppo_clip\n+from gym.envs import re...
Python
MIT License
deepx-inc/machina
[tests/test_env] Add max_episode_steps
154,206
30.03.2019 17:04:19
-32,400
552f0d94fd1cc73201c12d1680b98498d260aa0f
[tests/test_env] Autopep
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -10,7 +10,6 @@ import torch\nfrom gym.wrappers import FlattenDictWrapper\nfrom machina.envs import GymEnv, C2DEnv, flatten_to_dict\n-from env import PendulumDictEnv\nfrom simple_net import PolDic...
Python
MIT License
deepx-inc/machina
[tests/test_env] Autopep
154,206
30.03.2019 22:29:00
-32,400
26f4b8475ab2a067be022fab742f41aec265ee75
[tests/test_env] Add test by sac
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -7,16 +7,17 @@ import unittest\nimport gym\nimport numpy as np\nimport torch\n+from torch import nn\nfrom gym.wrappers import FlattenDictWrapper\nfrom machina.envs import GymEnv, C2DEnv, flatten_...
Python
MIT License
deepx-inc/machina
[tests/test_env] Add test by sac
154,206
31.03.2019 00:14:00
-32,400
f44d9e526912d5df51cdc903d77b64be30f12ff5
[envs/env_utils] Support rnn
[ { "change_type": "MODIFY", "old_path": "machina/envs/env_utils.py", "new_path": "machina/envs/env_utils.py", "diff": "@@ -12,11 +12,11 @@ def flatten_to_dict(flatten_obs, dict_space, dict_keys=None):\norigin_shape = dict_space.spaces[key].shape\nend_index += np.prod(origin_shape)\ndim = len(flatten_...
Python
MIT License
deepx-inc/machina
[envs/env_utils] Support rnn
154,206
31.03.2019 00:14:42
-32,400
bdeeafff256bb0e4e55c3f5dbdc7c85fb926b176
[tests/simple_net] Support rnn
[ { "change_type": "MODIFY", "old_path": "tests/simple_net.py", "new_path": "tests/simple_net.py", "diff": "@@ -382,3 +382,74 @@ class PolDictNet(nn.Module):\nreturn torch.cat([torch.softmax(ol(h), dim=-1).unsqueeze(-2) for ol in self.output_layers], dim=-2)\nelse:\nreturn torch.softmax(self.output_la...
Python
MIT License
deepx-inc/machina
[tests/simple_net] Support rnn
154,206
31.03.2019 00:14:59
-32,400
b5b42e3a2d5217ab2a08be2a68227d151ec64719
[tests/test_env] Support rnn
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -11,7 +11,7 @@ from torch import nn\nfrom gym.wrappers import FlattenDictWrapper\nfrom machina.envs import GymEnv, C2DEnv, flatten_to_dict\n-from simple_net import PolDictNet, VNet, QNet\n+from s...
Python
MIT License
deepx-inc/machina
[tests/test_env] Support rnn
154,206
01.04.2019 09:26:37
-32,400
4d57af09c26d25eb1527855681057ce473849ae3
[machina/envs/env_utils] Support any dimension of obs
[ { "change_type": "MODIFY", "old_path": "machina/envs/env_utils.py", "new_path": "machina/envs/env_utils.py", "diff": "@@ -12,11 +12,7 @@ def flatten_to_dict(flatten_obs, dict_space, dict_keys=None):\norigin_shape = dict_space.spaces[key].shape\nend_index += np.prod(origin_shape)\ndim = len(flatten_o...
Python
MIT License
deepx-inc/machina
[machina/envs/env_utils] Support any dimension of obs
154,206
01.04.2019 09:27:01
-32,400
517b749b0f8c5bf5d251e47d75f027e245018eb7
[tests/test_env] Add r2d2 test
[ { "change_type": "MODIFY", "old_path": "tests/test_env.py", "new_path": "tests/test_env.py", "diff": "@@ -11,13 +11,13 @@ from torch import nn\nfrom gym.wrappers import FlattenDictWrapper\nfrom machina.envs import GymEnv, C2DEnv, flatten_to_dict\n-from simple_net import PolDictNet, VNet, QNet, VNetL...
Python
MIT License
deepx-inc/machina
[tests/test_env] Add r2d2 test
154,206
02.04.2019 11:58:19
-32,400
4fdb29213b2345a4c5f4302bc32beefed933f909
[vfuncs/~/cem_state_action_vfunc] minor change
[ { "change_type": "MODIFY", "old_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "new_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "diff": "@@ -80,13 +80,17 @@ class CEMDeterministicSAVfunc(DeterministicSAVfunc):\nobs : torch.Tensor\ninit_samples : tor...
Python
MIT License
deepx-inc/machina
[vfuncs/~/cem_state_action_vfunc] minor change
154,206
02.04.2019 20:43:21
-32,400
5313dcf99ae7ae0bb609ba363adde23665808932
[docs] Add png files
[ { "change_type": "ADD", "old_path": "docs/_static/comment-bright.png", "new_path": "docs/_static/comment-bright.png", "diff": "Binary files /dev/null and b/docs/_static/comment-bright.png differ\n" }, { "change_type": "ADD", "old_path": "docs/_static/comment-close.png", "new_path": "...
Python
MIT License
deepx-inc/machina
[docs] Add png files
154,206
02.04.2019 23:20:02
-32,400
6c8d59dcbd51615d7b26c3c5f92192d6f5e9a890
[vfuncs/~/cem_state_action~] Add save memory option
[ { "change_type": "MODIFY", "old_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "new_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "diff": "@@ -32,7 +32,8 @@ class CEMDeterministicSAVfunc(DeterministicSAVfunc):\nCoefficient used for making covariance m...
Python
MIT License
deepx-inc/machina
[vfuncs/~/cem_state_action~] Add save memory option
154,206
02.04.2019 23:20:19
-32,400
1bfdabace59ed75e071ba87e3a3c5bf4b63bb9ea
[example/run_qtopt] Add save memory option
[ { "change_type": "MODIFY", "old_path": "example/run_qtopt.py", "new_path": "example/run_qtopt.py", "diff": "@@ -78,6 +78,8 @@ parser.add_argument('--eps', type=float, default=0.2,\nparser.add_argument('--loss_type', type=str,\nchoices=['mse', 'bce'], default='mse',\nhelp='Choice for type of belleman...
Python
MIT License
deepx-inc/machina
[example/run_qtopt] Add save memory option
154,206
03.04.2019 17:53:13
-32,400
3d35d2f698d2d7c076f4b7d3f9015e3e505a5136
[docs/source] Add documentation of env_utils
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -11,3 +11,4 @@ docs/_build/\n*.json\n*.pkl\n*.csv\n+docs/source/modules.rst\n" }, { "change_type": "MODIFY", "old_path": "docs/source/machina.envs.rst", "new_path": "docs/source/machina.envs.rs...
Python
MIT License
deepx-inc/machina
[docs/source] Add documentation of env_utils
154,206
03.04.2019 18:31:25
-32,400
504eecb5984f1671675fe50442093ecfcdc56cd2
[docs] remove _sources
[ { "change_type": "DELETE", "old_path": "docs/_sources/machina.algos.rst.txt", "new_path": null, "diff": "-machina.algos package\n-=====================\n-\n-.. automodule:: machina.algos\n- :members:\n- :undoc-members:\n- :show-inheritance:\n-\n-Submodules\n-----------\n-\n-machina.algos.airl module...
Python
MIT License
deepx-inc/machina
[docs] remove _sources
154,206
03.04.2019 18:58:14
-32,400
e41a1d9581b8dfa1b23a90f2dde28a43e8233a59
[docs] Add .nojekyll This empty file is necessary for not using Jekyll. Jekyll ignores css files, so we have not to use Jekyll.
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -13,4 +13,3 @@ docs/_build/\n*.csv\ndocs/source/modules.rst\ndocs/.doctrees\n-docs/_sources/\n" }, { "change_type": "ADD", "old_path": null, "new_path": "docs/_sources/machina.algos.rst.txt", ...
Python
MIT License
deepx-inc/machina
[docs] Add .nojekyll This empty file is necessary for not using Jekyll. Jekyll ignores css files, so we have not to use Jekyll.
154,206
04.04.2019 14:20:29
-32,400
a055b1d19a8b8cc7abbaad49148464cbd27ee989
Add info of documentation
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -203,5 +203,8 @@ You can start machina by checking out this [quickstart](https://github.com/DeepX\nMoreover, you can also check already implemented algorithms in [examples](https://github.com/DeepX-inc/machina/t...
Python
MIT License
deepx-inc/machina
Add info of documentation
154,206
04.04.2019 14:22:24
-32,400
094bcb502d8c41337cd523bbee3804bf70881f14
[DOCUMENTATION] Fix link
[ { "change_type": "MODIFY", "old_path": "DOCUMENTATION.md", "new_path": "DOCUMENTATION.md", "diff": "@@ -16,4 +16,4 @@ Run the following command in the root directory of machina's repository.\nRun the following command.\n`cp -r docs/_build/ docs/`\nAnd send a pull request.\n-If it is merged, we can s...
Python
MIT License
deepx-inc/machina
[DOCUMENTATION] Fix link
154,206
04.04.2019 14:24:44
-32,400
bb960c79c97f674f75d49c61cc33e87b6bcf7b23
[README] Fix link of docs
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -204,7 +204,7 @@ You can start machina by checking out this [quickstart](https://github.com/DeepX\nMoreover, you can also check already implemented algorithms in [examples](https://github.com/DeepX-inc/machina/t...
Python
MIT License
deepx-inc/machina
[README] Fix link of docs
154,206
04.04.2019 14:26:50
-32,400
28a33807ede143b8194fcc4fa2aaa869838facc4
[DOCUMENTATION] Change docs link as full link
[ { "change_type": "MODIFY", "old_path": "DOCUMENTATION.md", "new_path": "DOCUMENTATION.md", "diff": "@@ -16,4 +16,4 @@ Run the following command in the root directory of machina's repository.\nRun the following command.\n`cp -r docs/_build/ docs/`\nAnd send a pull request.\n-If it is merged, we can s...
Python
MIT License
deepx-inc/machina
[DOCUMENTATION] Change docs link as full link
154,206
06.04.2019 01:04:01
-32,400
e5e527d936fa9f73b636ab87e12e8e9fc6528781
[envs/gym_env] Remove property method
[ { "change_type": "MODIFY", "old_path": "machina/envs/gym_env.py", "new_path": "machina/envs/gym_env.py", "diff": "@@ -89,14 +89,6 @@ class GymEnv(gym.Env):\nself._log_dir = log_dir\nself._force_reset = force_reset\n- @property\n- def observation_space(self):\n- return self.observation_space\n-\n- @p...
Python
MIT License
deepx-inc/machina
[envs/gym_env] Remove property method
154,206
06.04.2019 01:17:59
-32,400
c10f554a7f55e58a01f03881a8801a20eca24672
[envs/ac_in_ob_env] Remove property
[ { "change_type": "MODIFY", "old_path": "machina/envs/ac_in_ob_env.py", "new_path": "machina/envs/ac_in_ob_env.py", "diff": "@@ -22,14 +22,6 @@ class AcInObEnv(gym.Env):\nself.observation_space = gym.spaces.Box(low, high, dtype=np.float32)\nself.action_space = self.env.action_space\n- @property\n- de...
Python
MIT License
deepx-inc/machina
[envs/ac_in_ob_env] Remove property
154,206
06.04.2019 01:18:08
-32,400
c87e74113fcdb12b21430227095975ec987b6906
[envs/rew_in_ob_env] Remove property
[ { "change_type": "MODIFY", "old_path": "machina/envs/rew_in_ob_env.py", "new_path": "machina/envs/rew_in_ob_env.py", "diff": "@@ -24,14 +24,6 @@ class RewInObEnv(gym.Env):\nself.observation_space = gym.spaces.Box(low, high, dtype=np.float32)\nself.action_space = self.env.action_space\n- @property\n-...
Python
MIT License
deepx-inc/machina
[envs/rew_in_ob_env] Remove property
154,206
06.04.2019 01:18:27
-32,400
6131578d9a5cc75d54ac98a1a0f3b6c7760b0f5c
[envs/continuous2discrete_env] Remove property
[ { "change_type": "MODIFY", "old_path": "machina/envs/continuous2discrete_env.py", "new_path": "machina/envs/continuous2discrete_env.py", "diff": "@@ -32,14 +32,6 @@ class C2DEnv(object):\nelse:\nself.original_env = env\n- @property\n- def observation_space(self):\n- return self.env.observation_space...
Python
MIT License
deepx-inc/machina
[envs/continuous2discrete_env] Remove property
154,206
08.04.2019 22:26:17
-32,400
823fe83b2a42256a3ef17ab190922c9515069db4
[cem_state_action_vfunc] Fix number of iteration
[ { "change_type": "MODIFY", "old_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "new_path": "machina/vfuncs/state_action_vfuncs/cem_state_action_vfunc.py", "diff": "@@ -112,10 +112,10 @@ class CEMDeterministicSAVfunc(DeterministicSAVfunc):\nmax_q : torch.Tensor\nmax_ac : torch...
Python
MIT License
deepx-inc/machina
[cem_state_action_vfunc] Fix number of iteration
154,208
09.04.2019 18:18:58
-32,400
e06dcd8b9cd8ef445fbd17ee246acedd67833d3c
Add `newline` for logging csv on windows
[ { "change_type": "MODIFY", "old_path": "machina/logger.py", "new_path": "machina/logger.py", "diff": "@@ -1259,7 +1259,7 @@ def _add_output(file_name, arr, fds, mode='a'):\nif file_name not in arr:\nmkdir_p(os.path.dirname(file_name))\narr.append(file_name)\n- fds[file_name] = open(file_name, mode)\...
Python
MIT License
deepx-inc/machina
Add `newline` for logging csv on windows
154,212
09.04.2019 22:31:59
-32,400
204c884919ddf76d9b60b175a29c29f4ae5c6627
add sampler for multi node
[ { "change_type": "MODIFY", "old_path": "machina/samplers/__init__.py", "new_path": "machina/samplers/__init__.py", "diff": "- Output is :py:class:`ndarray` of :py:class:`dict` of :py:class:`list`.\n\"\"\"\nfrom machina.samplers.epi_sampler import EpiSampler\n+from machina.samplers.distributed_epi_sa...
Python
MIT License
deepx-inc/machina
add sampler for multi node
154,207
09.04.2019 14:40:06
25,200
fc231f26074164a52ad07ba832b16e7c7cfaa18c
minor fix: no reason to send all exec_flags to all processes
[ { "change_type": "MODIFY", "old_path": "machina/samplers/epi_sampler.py", "new_path": "machina/samplers/epi_sampler.py", "diff": "@@ -88,7 +88,7 @@ def one_epi(env, pol, deterministic=False, prepro=None):\n)\n-def mp_sample(pol, env, max_steps, max_epis, n_steps_global, n_epis_global, epis, exec_fla...
Python
MIT License
deepx-inc/machina
minor fix: no reason to send all exec_flags to all processes
154,212
10.04.2019 21:15:17
-32,400
60349f0a5c3d08080f6c813028742e5cd907af1d
fix for installing redis
[ { "change_type": "MODIFY", "old_path": ".travis.yml", "new_path": ".travis.yml", "diff": "@@ -6,7 +6,7 @@ python:\ninstall:\n- sudo add-apt-repository universe\n- - sudo apt install redis\n+ - sudo apt install redis-server\n- pip install --upgrade pip setuptools wheel psutil\n- pip install --default...
Python
MIT License
deepx-inc/machina
fix for installing redis
154,212
11.04.2019 00:36:12
-32,400
27abe12ad5488a32fe7e20a2fa994b27e1e6dc1d
add multi node codes
[ { "change_type": "ADD", "old_path": null, "new_path": "example/run_ppo_multi_node.py", "diff": "+\"\"\"\n+An example of Proximal Policy Gradient.\n+\"\"\"\n+\n+import argparse\n+import json\n+import os\n+from pprint import pprint\n+\n+import numpy as np\n+import torch\n+import torch.nn as nn\n+impor...
Python
MIT License
deepx-inc/machina
add multi node codes