Commit f4f4701
authored
Refactor: Remove Cython - Reduce tech debt (#346)
* uncythonize, pytest update
* tests passing; fix add_conditions
* Fixup tests
* refactor: UniformFloat
* optim: UniformFloat get neighbors
* refactor: deprecate UniformFloat is_legal_vector
* big overhaul
* fix: depercation wraning of `np.integer` for dtype
* refactor: Big internal rewrite, passing tests
* test passing checkpoint
* pythonize conditionals
* optim: Topological sort and vectorize cond/forbiddens
* optim: Further small optimizations
* optim: Transpose sampling matrix for cache locality
* optim: Add test script for neighbor sampling
* test: Repass tests
* tmpcommmit - lets pray
* refactor: Factor out DAG structure into dedicated class
* refactor: Move things out of `c_util`
* fix: Minimum spanning
* fix: min-cond-span sorted by min(depth of all children)
* refactor: All tests and benchmarks pass
* refactor: Change deprecated test_util
* Revert "refactor: Change deprecated test_util"
This reverts commit da09f7813aaec6d65e510ae10907bf08bdf37da8.
* doc: Remove mention of cython
* build: Remove the use "build" in deps
* ci: Update test workflow
* ci: Remove conda tests since we no longer build w/ cython
* fix(typing): Use typing extension for future TypeAlias
* ci: Use caching for env across tests
* fix(typing): Use `Union` instead of 3.10 syntax
* ci: Remove git porcelain check
* fix(typing): Use typing for inheritance to support <= 3.9
* fix: Remove `strict=True` from `zip` to support <= 3.10
* fix(typing): Using `typing.Mapping` for inheritance
* fix: Move benchmarked functions as main functions to use
* style: Update ruff to use numpy syntax
* fix(functional): `linspace_chunked` acts more like `np.linspace`
* doc: Run `ruff --fix`
* style: Fix ruff checks
* refactor: Convert to `src` layout
* ci: Ignore use of `eval` in test
* style: Fix remaning ruff errors
* refactor: Json encoding
* refactor: Sorry, big dump
* optim: Further speedups to one exchange
* optim: Further speedups
* fix: Hyperparameter attributes are simple types
* fix: Sampling from empty configuration spaces
* fix: Revert changes from different branch
* fix: Test for default_value type
* fix: Deserialization with `"r"`
* fix: Conjunctions match clauses for equality #334
* fix: Import TypeAlias from typing_extensions
* fix: Remove unreliable __hash__ from ConfigurationSpace
* fix: Ruff errors
* typing: Soft deprecate `pcs` and `pcs_new`
* typing: Fix decoder type for json read and write
* ci: Move to ruff for linting
* fix: Better condition cloning in replace hyperparameters
* fix: Use 3.8 compatable isinstance checks
* typing: `configuration_space.py`
* typing: `dictionary.py`
* typing: `_condition_tree.py`
* typing: `forbidden.py`
* ci: Add `scipy.*` to list of mypy ignore missing import
* typing: `conditions.py`
* typing: Fix hyperparameter related issues
* test: Fixups
* refactor: Remove `nx` vendored lib
* test: Use new `add` as old was deprecated
* refactor: Remove deprecations
* fix: Use `isinstance(..., (type1, type2))`
* fix: Better casting for reading from pcs
* debug: Check windows issue of not legal
* ci: Don't use cache for installation
* fix: Change error type to IllegalVectorizedValue
* debug: More debug prints for ci
* ci: Exclude 3.8 3.9 mac
* debug: More ci debugging statements
* fix: UnitScaler promotes to 64bit to prevent overflow on windows
* fix: Remove non assigned type
* fix: Address minor comments
* fix: Minor review comments
* doc: Overhaul to mkdocs, partially complete
* doc: Fix missing comma
* doc: Typo fixes
* doc: typo fix again...
* doc: Major doc overhaul to mkdocs
* fix: Add backwards compatible `check_forbidden`
* fix: Allow backwards compat `"default"` key in encoded spaces
* fix: Backwards compatible private methods
* refactor: Use `check_` instead of `is_` as method raises
* doc: Forbiddens
* test: fix test funcion name
* fix(Forbidden): Uncomment value checking on `ForbiddenEqualsClaus`
* ci: Update doc and test workflows
* test: Remove stray function
* doc: Type fix
* doc: Add note to `_unsafe` code in `hp_components`
* doc: Typo fix
* doc: Improve code doc attribute clarity
* doc: Change `note` to `todo`
* doc: Fix documentation for `continuous_neighborhood`1 parent ce27ba2 commit f4f4701
File tree
141 files changed
+19177
-20589
lines changed- .github/workflows
- ConfigSpace
- api/types
- hyperparameters
- nx
- algorithms
- components
- classes
- read_and_write
- docs
- api
- assets
- reference
- scripts
- scripts
- src/ConfigSpace
- api
- types
- hyperparameters
- read_and_write
- test
- read_and_write
- test_api
- test_converters_and_test_searchspaces
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
141 files changed
+19177
-20589
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | 7 | | |
6 | | - | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
17 | | - | |
18 | | - | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 16 | | |
26 | | - | |
| 17 | + | |
27 | 18 | | |
28 | 19 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
2 | 5 | | |
3 | 6 | | |
4 | 7 | | |
| |||
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 35 | | |
| 36 | + | |
46 | 37 | | |
47 | | - | |
48 | | - | |
49 | 38 | | |
50 | 39 | | |
51 | 40 | | |
| |||
56 | 45 | | |
57 | 46 | | |
58 | 47 | | |
59 | | - | |
| 48 | + | |
60 | 49 | | |
61 | 50 | | |
62 | 51 | | |
63 | 52 | | |
64 | | - | |
| 53 | + | |
65 | 54 | | |
66 | 55 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 56 | + | |
118 | 57 | | |
119 | | - | |
120 | 58 | | |
| 59 | + | |
| 60 | + | |
121 | 61 | | |
122 | 62 | | |
123 | 63 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 64 | | |
128 | 65 | | |
129 | 66 | | |
130 | | - | |
131 | 67 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 68 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 47 | | |
60 | | - | |
| 48 | + | |
61 | 49 | | |
62 | 50 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 51 | + | |
| 52 | + | |
0 commit comments