@@ -459,7 +459,7 @@ def aspline(
459459
460460 xx = xmat .T .dot (xmat )
461461 xy = xmat .T .dot (y )
462- xx_rot = np .concat (
462+ xx_rot = np .concatenate (
463463 [
464464 self ._mat2rot (xx + (1e-20 * np .identity (ncol ))),
465465 np .zeros (ncol )[:, np .newaxis ],
@@ -491,7 +491,7 @@ def aspline(
491491 bs_model = linear_model .OLS (y , x_sel [index_penalty ]).fit ()
492492 model [index_penalty ] = bs_model
493493 coefs = np .zeros (ncol , dtype = np .float32 )
494- idx = np .concat ([sel > 0.99 , np .repeat (True , self ._DEGREE + 1 )])
494+ idx = np .concatenate ([sel > 0.99 , np .repeat (True , self ._DEGREE + 1 )])
495495 coefs [idx ] = bs_model .params
496496 par_ls [index_penalty ] = coefs
497497
@@ -544,7 +544,7 @@ def _mat2rot(self, band_mat: np.ndarray) -> np.ndarray:
544544 rot_mat [:, 0 ] = np .diag (band_mat )
545545 if l > 0 :
546546 for j in range (l ):
547- rot_mat [:, j + 1 ] = np .concat ([
547+ rot_mat [:, j + 1 ] = np .concatenate ([
548548 np .diag (band_mat [range (p - j - 1 ), :][:, range (j + 1 , p )]),
549549 np .zeros (j + 1 ),
550550 ])
0 commit comments