You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PERF pre-allocate arrays in NARX _get_hc_ids/_get_jc_ids (#242)
* PERF replace quadratic np.vstack/np.append with pre-allocated arrays in NARX ID construction
_get_hc_ids and _get_jc_ids grew arrays with np.vstack inside loops,
causing O(n²) allocation. Two-pass approach: count rows first,
pre-allocate exact size, fill in-place. 1.5x faster, 50% less RAM.
* vectorize and comments
* fix np astype
* PERF avoid result copies in NARX _get_jc_ids/_get_hc_ids
Use astype(copy=False) and free the boolean mask before allocating
result arrays, so peak RAM no longer exceeds the previous incremental
implementation at meaningful sizes (-15% to -27% peak for large term
counts). Outputs are byte-identical; jac/hess tests pass.
* CI re-trigger (OpenML 504 timeouts)
* readability
* scikit-learn<1.9
* pin pixi 0.70.0
* fix readthedocs
---------
Co-authored-by: sikai zhang <matthew.szhang91@gmail.com>
Copy file name to clipboardExpand all lines: README.rst
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,12 +108,6 @@ fastcan can be used for system identification.
108
108
In particular, we provide a submodule `fastcan.narx` to build Nonlinear AutoRegressive eXogenous (NARX) models.
109
109
For more information, check this `NARX model example <https://fastcan.readthedocs.io/en/latest/auto_examples/plot_narx.html>`_.
110
110
111
-
112
-
Support Free-Threaded Wheels
113
-
----------------------------
114
-
fastcan has support for free-threaded (also known as nogil) CPython 3.13.
115
-
For more information about free-threaded CPython, check `how to install a free-threaded CPython <https://py-free-threading.github.io/installing_cpython/>`_.
116
-
117
111
Support WASM Wheels
118
112
-------------------
119
113
fastcan is compiled to WebAssembly (WASM) wheels using `pyodide <https://github.com/pyodide/pyodide>`_.
0 commit comments