from sklearn.preprocessing import StandardScaler scaler = StandardScaler(with_mean=False) scaler.fit_transform(X) What is the effect of setting with_mean=False?

Select the correct answer: Single Choice

Key points

  • Centering destroys sparsity in matrices
  • with_mean=False is essential for sparse input
  • StandardScaler still performs scaling even if centering is disabled

Ready to go further?