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
{{ message }}
Repository navigation
GradientBoosting casts y to float64 in each tree #9098
I think currently GradientBoosting is casting y to float32 in fit in check_X_y, and then, if I understand correctly, each tree will cast y to float64.
That seems like a bunch of extra copies.
Maybe @raghavrv@jmschrei@glouppe can confirm or deny?
I would agree with @facaiy ,
In GradientBoosting, X is converted to float32 and y preserved in line, X, y = check_X_y(X, y, accept_sparse=['csr', 'csc', 'coo'], dtype=DTYPE)
In DecisionTreeRegressor, X is converted to float32 in line, X = check_array(X, dtype=DTYPE, accept_sparse="csc")
and y is preserved in line, y = check_array(y, ensure_2d=False, dtype=None)
Activity
jmschrei commentedon Jun 14, 2017
From my quick glance, it does appear that is the case.
facaiy commentedon Jun 26, 2017
It seems that in
check_X_y, X is cast to float32 While Y is preserved. Could you explain more in detail?amanp10 commentedon Jan 7, 2018
I would like to work on it, will start immediately.
amanp10 commentedon Jan 9, 2018
I would agree with @facaiy ,
In GradientBoosting, X is converted to float32 and y preserved in line,
X, y = check_X_y(X, y, accept_sparse=['csr', 'csc', 'coo'], dtype=DTYPE)In DecisionTreeRegressor, X is converted to float32 in line,
X = check_array(X, dtype=DTYPE, accept_sparse="csc")and y is preserved in line,
y = check_array(y, ensure_2d=False, dtype=None)amueller commentedon Jul 16, 2018
moving to 0.21 milestone