Guide64K views630 votes0 replies1,339 following
Diagnose and Fix StandardScaler Memory Growth on Sparse Matrices
StandardScaler(with_mean=True) can break sparsity in CSR/CSC matrices and cause sudden memory growth. Use with_mean=False and verify output type.