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
will trigger a memory copy, including when X is of dtype float64, which can have a significant impact on runtime performance (cf. e.g. #11966 (comment))
In #11966@massich made a list of places where this may be relevant.
Overall when we potentially cast to an array to the same dtype as it currently is,
for dense arrays we should probably always use X.atype(dtype, copy=False), unless a copy is explicitly needed.
for sparse arrays, copy argument was added to astype only a year ago unfortunately, so we may have to do something along the lines of,
Activity