You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Flexible regex pattern that works across Python versions
390
-
sparse_error_pattern=r".*sparse.*passed, but dense data is required.*toarray\(\).*dense numpy array.*"
390
+
sparse_error_pattern=r"(Sparse data|A sparse matrix) was passed, but dense data is required\. Use (?:'.*?'|X\.toarray\(\)) to convert to a dense numpy array\."
0 commit comments