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
Hello. I was attempting to build a decision tree using Float32 data and construction seems to hang for certain input data. Here's a small example.
using DecisionTree
#Tree construction does not seem to hang for Float64s with this array, but does for Float32s and 16s.
#I have had hangs with Float64's with different data.
indep=Float32.([ 9.4 9.4 1.1
9.4 9.4 -0.0
9.4 9.4 1.9
9.4 9.4 1.4
9.4 9.4 1.1
9.4 9.4 0.0])
dep=Float32.([ -0.4
-0.2
-1.1
0.0
0.0
0.0])
#The decision tree construction hangs for 9.4, -1.0, and 15.6, but not for 2.0 or 2.5??
indep[indep.≈9.4] .= 15.6
display(dep)
display(indep)
#This occasionlly doesn't hang the first time, but it has always done so on the second run.
build_forest(dep, indep, size(indep, 2), 10, 0.7)
When I managed to keyboard interrupt this in the REPL it seemed to be getting stuck in some threading situation.
Here are the versions+hardware I'm using
DecisionTree: v0.10.11
Julia: v"1.6.3" for Intel Mac (downloaded as a binary from the Julia Website) running through Rosetta 2
Computer: MacBookAir with M1 Chip.
I also downloaded Julia1.7 for Intel and AArch64, and got the same hang.
The text was updated successfully, but these errors were encountered:
I got around to looking at what the problem was in VSCode's debugger. The problem does not seem to be multithreading, as I removed all Threads.@threads and it persisted. Instead, it appears that the tree's depth somehow continues to grow indefinitely, with new splits only to the left. Using the same matrices as above, this is one of the resulting trees which would cause a hang if I did not set max_depth at 10. Each time the tree where this malfunction occurs is different; sometimes it doesn't happen at all.
Hello. I was attempting to build a decision tree using Float32 data and construction seems to hang for certain input data. Here's a small example.
When I managed to keyboard interrupt this in the REPL it seemed to be getting stuck in some threading situation.
Here are the versions+hardware I'm using
DecisionTree: v0.10.11
Julia: v"1.6.3" for Intel Mac (downloaded as a binary from the Julia Website) running through Rosetta 2
Computer: MacBookAir with M1 Chip.
I also downloaded Julia1.7 for Intel and AArch64, and got the same hang.
The text was updated successfully, but these errors were encountered: