Skip to content

Commit

Permalink
C++ ARIMA fixes and refactoring (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipcacky authored Nov 20, 2024
1 parent 8680a13 commit 1e6d98c
Show file tree
Hide file tree
Showing 4 changed files with 399 additions and 237 deletions.
2 changes: 1 addition & 1 deletion nbs/src/arima.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@
" order[1],\n",
" seasonal['order'][1],\n",
" ],\n",
" dtype=np.intc,\n",
" dtype=np.int32,\n",
" )\n",
" narma = arma[:4].sum().item()\n",
" \n",
Expand Down
2 changes: 1 addition & 1 deletion python/statsforecast/arima.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def maInvert(ma):
order[1],
seasonal["order"][1],
],
dtype=np.intc,
dtype=np.int32,
)
narma = arma[:4].sum().item()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
name="statsforecast._lib",
sources=glob.glob("src/*.cpp"),
include_dirs=["include/statsforecast", "external_libs/eigen"],
cxx_std=17,
cxx_std=20,
)
]
ParallelCompile("CMAKE_BUILD_PARALLEL_LEVEL", needs_recompile=naive_recompile).install()
Expand Down
Loading

0 comments on commit 1e6d98c

Please sign in to comment.