invrs-opt 0.4.0__py3-none-any.whl → 0.10.3__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,75 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: invrs_opt
3
- Version: 0.4.0
4
- Summary: Algorithms for inverse design
5
- Author-email: "Martin F. Schubert" <mfschubert@gmail.com>
6
- Maintainer-email: "Martin F. Schubert" <mfschubert@gmail.com>
7
- License: MIT License
8
-
9
- Copyright (c) 2023 The INVRS-IO authors.
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions:
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.
28
-
29
- Keywords: topology,optimization,jax,inverse design
30
- Requires-Python: >=3.7
31
- Description-Content-Type: text/markdown
32
- License-File: LICENSE
33
- Requires-Dist: jax
34
- Requires-Dist: jaxlib
35
- Requires-Dist: numpy
36
- Requires-Dist: requests
37
- Requires-Dist: scipy
38
- Requires-Dist: totypes
39
- Requires-Dist: types-requests
40
- Provides-Extra: dev
41
- Requires-Dist: bump-my-version ; extra == 'dev'
42
- Requires-Dist: darglint ; extra == 'dev'
43
- Requires-Dist: mypy ; extra == 'dev'
44
- Requires-Dist: pre-commit ; extra == 'dev'
45
- Provides-Extra: tests
46
- Requires-Dist: parameterized ; extra == 'tests'
47
- Requires-Dist: pytest ; extra == 'tests'
48
- Requires-Dist: pytest-cov ; extra == 'tests'
49
- Requires-Dist: pytest-subtests ; extra == 'tests'
50
-
51
- # invrs-opt - Optimization algorithms for inverse design
52
- `v0.4.0`
53
-
54
- ## Overview
55
-
56
- The `invrs-opt` package defines an optimizer API intended for topology optimization, inverse design, or AI-guided design. It (currently) implements the L-BFGS-B optimization algorithm along with some variants. The API is intended to be general so that new algorithms can be accommodated, and is inspired by the functional optimizer approach used in jax. Example usage is as follows:
57
-
58
- ```python
59
- initial_params = ...
60
-
61
- optimizer = invrs_opt.lbfgsb()
62
- state = optimizer.init(initial_params)
63
-
64
- for _ in range(steps):
65
- params = optimizer.params(state)
66
- value, grad = jax.value_and_grad(loss_fn)(params)
67
- state = optimizer.update(grad=grad, value=value, params=params, state=state)
68
- ```
69
-
70
- Optimizers in `invrs-opt` are compatible with custom types defined in the [totypes](https://github.com/invrs-io/totypes) package. The basic `lbfgsb` optimizer enforces bounds for custom types, while the `density_lbfgsb` optimizer implements a filter-and-threshold operation for `DensityArray2D` types to ensure that solutions have the correct length scale.
71
-
72
- ## Install
73
- ```
74
- pip install invrs_opt
75
- ```
@@ -1,14 +0,0 @@
1
- invrs_opt/__init__.py,sha256=sKLkaXTzj4zJf3pOcXI1uiHRM15tEEr2BhSL4RWQEns,309
2
- invrs_opt/base.py,sha256=dSX9QkMPzI8ROxy2cFNmMwk_89eQbk0rw94CzvLPQoY,907
3
- invrs_opt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- invrs_opt/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- invrs_opt/experimental/client.py,sha256=td5o_YqqbcSypDrWCVrHGSoF8UxEdOLtKU0z9Dth9lA,4842
6
- invrs_opt/experimental/labels.py,sha256=dQDAMPyFMV6mXnMy295z8Ap205DRdVzysXny_Be8FmY,562
7
- invrs_opt/lbfgsb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- invrs_opt/lbfgsb/lbfgsb.py,sha256=YEBM7XcKj65QpEwO5Y8Mgmjud-h8k-1lF6UsEFgu6sM,25130
9
- invrs_opt/lbfgsb/transform.py,sha256=a_Saj9Wq4lvqCJBrg5L2Z9DZ2NVs1xqrHLqha90a9Ws,5971
10
- invrs_opt-0.4.0.dist-info/LICENSE,sha256=ty6jHPvpyjHy6dbhnu6aDSY05bbl2jQTjnq9u1sBCfM,1078
11
- invrs_opt-0.4.0.dist-info/METADATA,sha256=abuCz0t6ZBbkxwL23I-Ef1m5IKMVJveOjvEl25SmfEw,3326
12
- invrs_opt-0.4.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
13
- invrs_opt-0.4.0.dist-info/top_level.txt,sha256=hOziS2uJ_NgwaW9yhtOfeuYnm1X7vobPBcp_6eVWKfM,10
14
- invrs_opt-0.4.0.dist-info/RECORD,,
File without changes