Back to Scikit Learn

31177.Major Feature

doc/whats_new/upcoming_changes/many-modules/31177.major-feature.rst

1.8.0594 B
Original Source
  • Introduced a new config key: "sparse_interface" to control whether functions return sparse objects using SciPy sparse matrix or SciPy sparse array. Use sklearn.set_config(sparse_interface="sparray") to have sklearn return sparse arrays. See more at the SciPy Sparse Migration Guide. <https://docs.scipy.org/doc/scipy/reference/sparse.migration_to_sparray.html>_ The scikit-learn config "sparse_interface" initially defaults to sparse matrix ("spmatrix"). The plan is to have the default change to sparse array ("sparray") in a few releases. By :user:Dan Schult <dschult>