invrs-opt 0.3.2__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,73 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: invrs_opt
3
- Version: 0.3.2
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: scipy
37
- Requires-Dist: totypes
38
- Provides-Extra: dev
39
- Requires-Dist: bump-my-version ; extra == 'dev'
40
- Requires-Dist: darglint ; extra == 'dev'
41
- Requires-Dist: mypy ; extra == 'dev'
42
- Requires-Dist: pre-commit ; extra == 'dev'
43
- Provides-Extra: tests
44
- Requires-Dist: parameterized ; extra == 'tests'
45
- Requires-Dist: pytest ; extra == 'tests'
46
- Requires-Dist: pytest-cov ; extra == 'tests'
47
- Requires-Dist: pytest-subtests ; extra == 'tests'
48
-
49
- # invrs-opt - Optimization algorithms for inverse design
50
- `v0.3.2`
51
-
52
- ## Overview
53
-
54
- 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:
55
-
56
- ```python
57
- initial_params = ...
58
-
59
- optimizer = invrs_opt.lbfgsb()
60
- state = optimizer.init(initial_params)
61
-
62
- for _ in range(steps):
63
- params = optimizer.params(state)
64
- value, grad = jax.value_and_grad(loss_fn)(params)
65
- state = optimizer.update(grad=grad, value=value, params=params, state=state)
66
- ```
67
-
68
- 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.
69
-
70
- ## Install
71
- ```
72
- pip install invrs_opt
73
- ```
@@ -1,11 +0,0 @@
1
- invrs_opt/__init__.py,sha256=JG9h93Vq0AA2jX6zcqwxjA-LXOws8CJQeEbY9VQvQWQ,309
2
- invrs_opt/base.py,sha256=dSX9QkMPzI8ROxy2cFNmMwk_89eQbk0rw94CzvLPQoY,907
3
- invrs_opt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- invrs_opt/lbfgsb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- invrs_opt/lbfgsb/lbfgsb.py,sha256=2X0GVQwMCj2beYHLiAdwoAnBIdJLPThH0Jjduz3GzHA,25080
6
- invrs_opt/lbfgsb/transform.py,sha256=a_Saj9Wq4lvqCJBrg5L2Z9DZ2NVs1xqrHLqha90a9Ws,5971
7
- invrs_opt-0.3.2.dist-info/LICENSE,sha256=ty6jHPvpyjHy6dbhnu6aDSY05bbl2jQTjnq9u1sBCfM,1078
8
- invrs_opt-0.3.2.dist-info/METADATA,sha256=pwrRENMlb_s1bNAeROw-cJ-nIVuqR9815r-jPNM3cEg,3272
9
- invrs_opt-0.3.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
10
- invrs_opt-0.3.2.dist-info/top_level.txt,sha256=hOziS2uJ_NgwaW9yhtOfeuYnm1X7vobPBcp_6eVWKfM,10
11
- invrs_opt-0.3.2.dist-info/RECORD,,
File without changes