Why is np.float64 the only return dtype used for RandomForestRegressor predict? #27562
Unanswered
ethanglaser
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am facing an issue when using hardware that is not float64/double compatible and have traced it to sklearn's RandomForestRegressor predict function, specifically: https://github.com/scikit-learn/scikit-learn/blob/d99b728b3/sklearn/ensemble/_forest.py#L989-L993. I am wondering why np.float64 is used here - wouldn't it make more sense to use X.dtype?
Beta Was this translation helpful? Give feedback.
All reactions