matrix extension refactored
This commit is contained in:
parent
46d3964e6e
commit
beea23db14
|
@ -45,9 +45,9 @@ class ExtendedData:
|
|||
pred_proba: np.ndarray,
|
||||
ext: np.ndarray = None,
|
||||
) -> np.ndarray | sp.csr_matrix:
|
||||
to_append = pred_proba
|
||||
if ext is not None:
|
||||
to_append = np.concatenate([ext, pred_proba], axis=1)
|
||||
to_append = ext
|
||||
if ext is None:
|
||||
to_append = pred_proba
|
||||
|
||||
if isinstance(instances, sp.csr_matrix):
|
||||
_to_append = sp.csr_matrix(to_append)
|
||||
|
|
Loading…
Reference in New Issue