pyRDDLGym-jax 2.7__py3-none-any.whl → 2.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.
pyRDDLGym_jax/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '2.7'
1
+ __version__ = '2.8'
@@ -25,36 +25,6 @@ from pyRDDLGym_jax.core.planner import (
25
25
  load_config, JaxBackpropPlanner, JaxOfflineController, JaxOnlineController
26
26
  )
27
27
 
28
-
29
- def run_cnn1d():
30
- import haiku as hk
31
- import jax
32
- import jax.numpy as jnp
33
-
34
- class CNN(hk.Module):
35
- def __init__(self, name=None):
36
- super().__init__(name=name)
37
- self.conv1d_layer = hk.Conv1D(
38
- output_channels=4,
39
- kernel_shape=6, # Kernel size for 1D convolution
40
- padding="SAME",
41
- name="conv"
42
- )
43
-
44
- def __call__(self, x):
45
- return self.conv1d_layer(x)
46
-
47
- # Example usage:
48
- key = jax.random.PRNGKey(42)
49
- input_data = jnp.ones([1, 4]) # Batch size 1, sequence length 10, 1 input channel
50
-
51
- # Transform the Haiku module into a pure function
52
- f = hk.transform(lambda x: CNN()(x))
53
- params = f.init(key, input_data)
54
- print(params['cnn/~/conv']['w'].shape)
55
- print(params['cnn/~/conv']['b'].shape)
56
- print(f.apply(params, key, input_data).shape)
57
-
58
28
 
59
29
  def main(domain: str, instance: str, method: str, episodes: int=1) -> None:
60
30
 
@@ -93,7 +63,6 @@ def main(domain: str, instance: str, method: str, episodes: int=1) -> None:
93
63
 
94
64
 
95
65
  def run_from_args(args):
96
- run_cnn1d()
97
66
  if len(args) < 3:
98
67
  print('python run_plan.py <domain> <instance> <method> [<episodes>]')
99
68
  exit(1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyRDDLGym-jax
3
- Version: 2.7
3
+ Version: 2.8
4
4
  Summary: pyRDDLGym-jax: automatic differentiation for solving sequential planning problems in JAX.
5
5
  Home-page: https://github.com/pyrddlgym-project/pyRDDLGym-jax
6
6
  Author: Michael Gimelfarb, Ayal Taitler, Scott Sanner
@@ -1,4 +1,4 @@
1
- pyRDDLGym_jax/__init__.py,sha256=nHQztRWlKCpxZgvKkxsGQax5-clS2XguHhAvmBZt0sA,19
1
+ pyRDDLGym_jax/__init__.py,sha256=wFUjCk0MO0Yrqazz3Sl7bIWJNarnZ6DdSmyPNcX43ek,19
2
2
  pyRDDLGym_jax/entry_point.py,sha256=K0zy1oe66jfBHkHHCM6aGHbbiVqnQvDhDb8se4uaKHE,3319
3
3
  pyRDDLGym_jax/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  pyRDDLGym_jax/core/compiler.py,sha256=DS4G5f5U83cOUQsUe6RsyyJnLPDuHaqjxM7bHSWMCtM,88040
@@ -13,7 +13,7 @@ pyRDDLGym_jax/core/assets/favicon.ico,sha256=RMMrI9YvmF81TgYG7FO7UAre6WmYFkV3B2G
13
13
  pyRDDLGym_jax/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pyRDDLGym_jax/examples/run_gradient.py,sha256=KhXvijRDZ4V7N8NOI2WV8ePGpPna5_vnET61YwS7Tco,2919
15
15
  pyRDDLGym_jax/examples/run_gym.py,sha256=rXvNWkxe4jHllvbvU_EOMji_2-2k5d4tbBKhpMm_Gaw,1526
16
- pyRDDLGym_jax/examples/run_plan.py,sha256=uScTTUSdwohhaqvmSf9zvOjQn4xZ97qU1xYezZTIIHg,3745
16
+ pyRDDLGym_jax/examples/run_plan.py,sha256=4y7JHqTxY5O1ltP6N7rar0jMiw7u9w1nuAIOcmDaAuE,2806
17
17
  pyRDDLGym_jax/examples/run_scipy.py,sha256=7uVnDXb7D3NTJqA2L8nrcYDJP-k0ba9dl9YqA2CD9ac,2301
18
18
  pyRDDLGym_jax/examples/run_tune.py,sha256=F5KWgtoCPbf7XHB6HW9LjxarD57U2LvuGdTz67OL1DY,4114
19
19
  pyRDDLGym_jax/examples/configs/Cartpole_Continuous_gym_drp.cfg,sha256=mE8MqhOlkHeXIGEVrnR3QY6I-_iy4uxFYRA71P1bmtk,347
@@ -42,9 +42,9 @@ pyRDDLGym_jax/examples/configs/default_slp.cfg,sha256=mJo0woDevhQCSQfJg30ULVy9qG
42
42
  pyRDDLGym_jax/examples/configs/tuning_drp.cfg,sha256=zocZn_cVarH5i0hOlt2Zu0NwmXYBmTTghLaXLtQOGto,526
43
43
  pyRDDLGym_jax/examples/configs/tuning_replan.cfg,sha256=9oIhtw9cuikmlbDgCgbrTc5G7hUio-HeAv_3CEGVclY,523
44
44
  pyRDDLGym_jax/examples/configs/tuning_slp.cfg,sha256=QqnyR__5-HhKeCDfGDel8VIlqsjxRHk4SSH089zJP8s,486
45
- pyrddlgym_jax-2.7.dist-info/licenses/LICENSE,sha256=2a-BZEY7aEZW-DkmmOQsuUDU0pc6ovQy3QnYFZ4baq4,1095
46
- pyrddlgym_jax-2.7.dist-info/METADATA,sha256=xN_SB6x-qiC9cj8O0VvF9HIEDpK79i7FQgn8D3og2xQ,16770
47
- pyrddlgym_jax-2.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
- pyrddlgym_jax-2.7.dist-info/entry_points.txt,sha256=Q--z9QzqDBz1xjswPZ87PU-pib-WPXx44hUWAFoBGBA,59
49
- pyrddlgym_jax-2.7.dist-info/top_level.txt,sha256=n_oWkP_BoZK0VofvPKKmBZ3NPk86WFNvLhi1BktCbVQ,14
50
- pyrddlgym_jax-2.7.dist-info/RECORD,,
45
+ pyrddlgym_jax-2.8.dist-info/licenses/LICENSE,sha256=2a-BZEY7aEZW-DkmmOQsuUDU0pc6ovQy3QnYFZ4baq4,1095
46
+ pyrddlgym_jax-2.8.dist-info/METADATA,sha256=WKXqbnUZX508HqaTJ1LVAhENd3A1zFsZFYnSk2dONFo,16770
47
+ pyrddlgym_jax-2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
48
+ pyrddlgym_jax-2.8.dist-info/entry_points.txt,sha256=Q--z9QzqDBz1xjswPZ87PU-pib-WPXx44hUWAFoBGBA,59
49
+ pyrddlgym_jax-2.8.dist-info/top_level.txt,sha256=n_oWkP_BoZK0VofvPKKmBZ3NPk86WFNvLhi1BktCbVQ,14
50
+ pyrddlgym_jax-2.8.dist-info/RECORD,,