Skip to content

Commit 87512d9

Browse files
author
Chuyang Deng
committed
update scipy warning message
1 parent 262d293 commit 87512d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sagemaker/amazon/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ def write_spmatrix_to_sparse_tensor(file, array, labels=None):
175175
try:
176176
import scipy
177177
except ImportError as e:
178-
logging.warning("scipy is removed from SageMaker Python SDK v2.")
178+
logging.warning(
179+
"scipy failed to import. Sparse matrix functions will be impaired or broken."
180+
)
179181
# Any subsequent attempt to use scipy will raise the ImportError
180182
scipy = DeferredError(e)
181183

0 commit comments

Comments
 (0)