Skip to content

Commit

Permalink
Big refactor (openai#124)
Browse files Browse the repository at this point in the history
* massive revision inspired by soup: algo folder works

* porting rl commands, WIP

* various

* git subrepo push [email protected]:openai/codegen.git --branch=refactor codegen

subrepo:
  subdir:   "codegen"
  merged:   "aa27e069"
upstream:
  origin:   "[email protected]:openai/codegen.git"
  branch:   "refactor"
  commit:   "aa27e069"
git-subrepo:
  version:  "0.4.0"
  origin:   "[email protected]:ingydotnet/git-subrepo.git"
  commit:   "74339e8"

* various

* rewrite RL stuff in new framework

* fix almost everything

* woohoo tests pass

* more tests

* reformatting

* fixes

* write tests for embeddings

* re-remove cg2

* pylint

* minor

* move smooth_helpers import; seems to cause nondeterministic failure in parallel pytest
  • Loading branch information
joschu authored and pzhokhov committed Oct 3, 2018
1 parent c0d96fc commit 0ae6180
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions baselines/common/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def param_placeholder(self, prepend_shape, name=None):
def sample_placeholder(self, prepend_shape, name=None):
return tf.placeholder(dtype=self.sample_dtype(), shape=prepend_shape+self.sample_shape(), name=name)

def __eq__(self, other):
return (type(self) == type(other)) and (self.__dict__ == other.__dict__)

class CategoricalPdType(PdType):
def __init__(self, ncat):
self.ncat = ncat
Expand Down

0 comments on commit 0ae6180

Please sign in to comment.