metacontroller-pytorch 0.0.6__py3-none-any.whl → 0.0.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,9 +113,7 @@ class MetaController(Module):
113
113
  def internal_rl_parameters(self):
114
114
  return [
115
115
  *self.action_proposer.parameters(),
116
- *self.action_proposer_mean_log_var.parameters(),
117
- *self.decoder.parameters(),
118
- *self.switch_gating
116
+ *self.action_proposer_mean_log_var.parameters()
119
117
  ]
120
118
 
121
119
  def forward(
@@ -150,8 +148,6 @@ class MetaController(Module):
150
148
 
151
149
  switch_beta = self.to_switching_unit_beta(switching_unit_gru_out).sigmoid()
152
150
 
153
- # switch_beta = switch_beta.expand_as(sampled_action)
154
-
155
151
  # need to encourage normal distribution
156
152
 
157
153
  vae_kl_loss = self.zero
@@ -233,13 +229,15 @@ class Transformer(Module):
233
229
 
234
230
  def evolve(
235
231
  self,
232
+ num_generations,
236
233
  environment,
237
234
  **kwargs
238
235
  ):
239
- assert exists(self.meta_controller), '`meta_controller` must be defined on init for evolutionary strategies to be straightforwardly applied'
236
+ assert exists(self.meta_controller), '`meta_controller` must be passed in or defined on init for evolutionary strategies to be straightforwardly applied'
240
237
 
241
238
  evo_strat = EvoStrategy(
242
239
  self,
240
+ num_generations = num_generations,
243
241
  environment = environment,
244
242
  params_to_optimize = self.meta_controller.internal_rl_parameters(),
245
243
  **kwargs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metacontroller-pytorch
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: Transformer Metacontroller
5
5
  Project-URL: Homepage, https://pypi.org/project/metacontroller/
6
6
  Project-URL: Repository, https://github.com/lucidrains/metacontroller
@@ -0,0 +1,6 @@
1
+ metacontroller/__init__.py,sha256=lj7IOGpN--qMxJWbB-4SGqoPXG7Hd4mgtToTRSyTZ58,57
2
+ metacontroller/metacontroller.py,sha256=cbo0F861KIcGIhJ1j-Js6Qwfm_-8nm5Sm0LJiRO7hl0,8265
3
+ metacontroller_pytorch-0.0.8.dist-info/METADATA,sha256=a7aUiVugnv5PJ-AZqnCyEczWsmuUS30s-3DsBKuThNQ,3713
4
+ metacontroller_pytorch-0.0.8.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
5
+ metacontroller_pytorch-0.0.8.dist-info/licenses/LICENSE,sha256=1yCiA9b5nhslTavxPjsQAO-wpOnwJR9-l8LTVi7GJuk,1066
6
+ metacontroller_pytorch-0.0.8.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- metacontroller/__init__.py,sha256=lj7IOGpN--qMxJWbB-4SGqoPXG7Hd4mgtToTRSyTZ58,57
2
- metacontroller/metacontroller.py,sha256=8AWkPlZWh2A1sRT6nMV0CGHuYhQ5pHEpd5bgyRmZelg,8316
3
- metacontroller_pytorch-0.0.6.dist-info/METADATA,sha256=vXT_-n3bHgpddnS5axyyc-cADGNk4l2enJv4g4cTJ7A,3713
4
- metacontroller_pytorch-0.0.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
5
- metacontroller_pytorch-0.0.6.dist-info/licenses/LICENSE,sha256=1yCiA9b5nhslTavxPjsQAO-wpOnwJR9-l8LTVi7GJuk,1066
6
- metacontroller_pytorch-0.0.6.dist-info/RECORD,,