BIZNIQUE / LINEAR ALGEBRA / 15
Account for preprocessing cost
Account for preprocessing cost
Estimate the storage and passes required before adding another transformed dataset.
BIZNIQUE / LINEAR ALGEBRA / 15
Estimate the storage and passes required before adding another transformed dataset.
THE IDEA
Computing feature statistics and applying a simple scaling rule each require work proportional to the number of visited values. Keeping both original and transformed dense arrays can approximately double value storage.
One dense pass touches n × d values
Centring a sparse matrix usually turns implicit zeros into nonzero values. Check sparse-compatible operations and peak memory, rather than assuming that preprocessing is free.
TRY IT YOURSELF
What happens to a stored zero after subtracting a nonzero feature mean?
It becomes −μ. Applying this to implicit zeros can destroy sparsity.