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
Hi, I found that for regression algorithm in apply_forest function (mean) the labels type T of model should be exact Float64:
functionapply_forest(forest::Ensemble{S, T}, features::AbstractVector{S}) where {S, T}
n_trees =length(forest)
votes =Array{T}(undef, n_trees)
for i in1:n_trees
votes[i] =apply_tree(forest.trees[i], features)
endif T <:Float64returnmean(votes)
elsereturnmajority_vote(votes)
endend
Is there any particular reason why condition is not T <: AbstractFloat? Also, the documentation noted that regression choosed when labels/targets of type Float, not Float64.
Thanks!
The text was updated successfully, but these errors were encountered:
You are probably right. Well spotted! If you want, you can open a PR to fix this. If the tests pass, then it will most likely be merged. (Optionally, you can also do a search on the codebase for any other cases of Float64 matches to check whether there are not more cases like this.)
Hi, I found that for regression algorithm in apply_forest function (mean) the labels type T of model should be exact Float64:
Is there any particular reason why condition is not
T <: AbstractFloat
? Also, the documentation noted that regression choosed when labels/targets of type Float, not Float64.Thanks!
The text was updated successfully, but these errors were encountered: