Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 492e364

Browse files
removed exception in check_array
1 parent 6782d59 commit 492e364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/utils/validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ def check_array(array, accept_sparse=None, dtype="numeric", order=None,
367367
if array.ndim == 1:
368368
warnings.warn("Array needs atleast 2 dimnesions",
369369
DeprecationWarning)
370-
raise Exception('Array needs atleast 2 dimnesions')
370+
371371
# make sure we acually converted to numeric:
372372
if dtype_numeric and array.dtype.kind == "O":
373373
array = array.astype(np.float64)

0 commit comments

Comments
 (0)