evolutionary-policy-optimization 0.0.17__tar.gz → 0.0.18__tar.gz
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.
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/.github/workflows/test.yml +4 -2
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/PKG-INFO +2 -6
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/evolutionary_policy_optimization/epo.py +6 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/pyproject.toml +2 -8
- evolutionary_policy_optimization-0.0.18/requirements.txt +3 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/.github/workflows/python-publish.yml +0 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/.gitignore +0 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/LICENSE +0 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/README.md +0 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/evolutionary_policy_optimization/__init__.py +0 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/evolutionary_policy_optimization/experimental.py +0 -0
- {evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/tests/test_epo.py +0 -0
@@ -8,8 +8,10 @@ jobs:
|
|
8
8
|
- uses: actions/checkout@v4
|
9
9
|
- name: Install Python
|
10
10
|
uses: actions/setup-python@v4
|
11
|
+
- name: Install uv
|
12
|
+
run: pip install uv && uv venv
|
11
13
|
- name: Install dependencies
|
12
14
|
run: |
|
13
|
-
pip install .[test]
|
15
|
+
uv pip install .[test]
|
14
16
|
- name: Run pytest
|
15
|
-
run: pytest tests
|
17
|
+
run: uv run pytest tests
|
{evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: evolutionary-policy-optimization
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.18
|
4
4
|
Summary: EPO - Pytorch
|
5
5
|
Project-URL: Homepage, https://pypi.org/project/evolutionary-policy-optimization/
|
6
6
|
Project-URL: Repository, https://github.com/lucidrains/evolutionary-policy-optimization
|
@@ -33,7 +33,7 @@ Classifier: Intended Audience :: Developers
|
|
33
33
|
Classifier: License :: OSI Approved :: MIT License
|
34
34
|
Classifier: Programming Language :: Python :: 3.8
|
35
35
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
36
|
-
Requires-Python: >=3.
|
36
|
+
Requires-Python: >=3.9
|
37
37
|
Requires-Dist: adam-atan2-pytorch
|
38
38
|
Requires-Dist: assoc-scan
|
39
39
|
Requires-Dist: einops>=0.8.0
|
@@ -44,10 +44,6 @@ Provides-Extra: examples
|
|
44
44
|
Requires-Dist: numpy; extra == 'examples'
|
45
45
|
Requires-Dist: pufferlib>=2.0.6; extra == 'examples'
|
46
46
|
Requires-Dist: tqdm; extra == 'examples'
|
47
|
-
Provides-Extra: examples-gym
|
48
|
-
Requires-Dist: box2d-py; extra == 'examples-gym'
|
49
|
-
Requires-Dist: gymnasium[box2d]>=1.0.0; extra == 'examples-gym'
|
50
|
-
Requires-Dist: tqdm; extra == 'examples-gym'
|
51
47
|
Provides-Extra: test
|
52
48
|
Requires-Dist: pytest; extra == 'test'
|
53
49
|
Description-Content-Type: text/markdown
|
@@ -206,6 +206,8 @@ class Actor(Module):
|
|
206
206
|
assert len(dim_hiddens) >= 2
|
207
207
|
dim_first, *_, dim_last = dim_hiddens
|
208
208
|
|
209
|
+
self.dim_latent = dim_latent
|
210
|
+
|
209
211
|
self.init_layer = nn.Sequential(
|
210
212
|
nn.Linear(dim_state, dim_first),
|
211
213
|
nn.SiLU()
|
@@ -242,6 +244,8 @@ class Critic(Module):
|
|
242
244
|
assert len(dim_hiddens) >= 2
|
243
245
|
dim_first, *_, dim_last = dim_hiddens
|
244
246
|
|
247
|
+
self.dim_latent = dim_latent
|
248
|
+
|
245
249
|
self.init_layer = nn.Sequential(
|
246
250
|
nn.Linear(dim_state, dim_first),
|
247
251
|
nn.SiLU()
|
@@ -490,6 +494,8 @@ class Agent(Module):
|
|
490
494
|
|
491
495
|
self.latent_gene_pool = latent_gene_pool
|
492
496
|
|
497
|
+
assert actor.dim_latent == critic.dim_latent == latent_gene_pool.dim_latent
|
498
|
+
|
493
499
|
# optimizers
|
494
500
|
|
495
501
|
self.actor_optim = optim_klass(actor.parameters(), lr = actor_lr, **actor_optim_kwargs)
|
{evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/pyproject.toml
RENAMED
@@ -1,12 +1,12 @@
|
|
1
1
|
[project]
|
2
2
|
name = "evolutionary-policy-optimization"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.18"
|
4
4
|
description = "EPO - Pytorch"
|
5
5
|
authors = [
|
6
6
|
{ name = "Phil Wang", email = "lucidrains@gmail.com" }
|
7
7
|
]
|
8
8
|
readme = "README.md"
|
9
|
-
requires-python = ">= 3.
|
9
|
+
requires-python = ">= 3.9"
|
10
10
|
license = { file = "LICENSE" }
|
11
11
|
keywords = [
|
12
12
|
'artificial intelligence',
|
@@ -43,12 +43,6 @@ examples = [
|
|
43
43
|
"tqdm",
|
44
44
|
]
|
45
45
|
|
46
|
-
examples_gym = [
|
47
|
-
"box2d-py",
|
48
|
-
"gymnasium[box2d]>=1.0.0",
|
49
|
-
"tqdm",
|
50
|
-
]
|
51
|
-
|
52
46
|
test = [
|
53
47
|
"pytest"
|
54
48
|
]
|
File without changes
|
{evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/.gitignore
RENAMED
File without changes
|
File without changes
|
{evolutionary_policy_optimization-0.0.17 → evolutionary_policy_optimization-0.0.18}/README.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|