Fatal error in type inference (type bound) in 0.7 RC2

I am getting the error below since RC2.
The code ran fine in 0.7beta if I recall correctly.

Any ideas why this happens?
It seems related to a type union of sseSplit and mseSplit.

here is an MWE DecisionTrees.jl/mwe_fatal_error_type_inference.jl at master · kafisatz/DecisionTrees.jl · GitHub

I found some closed issues on GitHub on the topic. But could not figure out how to fix this.

ERROR: fatal error in type inference (type bound)
Stacktrace:
 [1] _typed_hcat(::Type{Float64}, ::Tuple{Array{Int64,1},Array{Int64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1},Array{Float64,1}}) at .\abstractarray.jl:1255
 [2] typed_hcat at .\abstractarray.jl:1243 [inlined]
 [3] hcat at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\SparseArrays\src\sparsevector.jl:1063 [inlined]
 [4] macro expansion at .\logging.jl:307 [inlined]
 [5] macro expansion at .\util.jl:156 [inlined]
 [6] macro expansion at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\boosting.jl:89 [inlined]
 [7] macro expansion at .\util.jl:156 [inlined]
 [8] macro expansion at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\helper_functions.jl:1469 [inlined]
 [9] boosted_tree(::DecisionTrees.DTMTable, ::ModelSettings) at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\boosting.jl:82
 [10] run_model_actual(::DecisionTrees.DTMTable, ::ModelSettings, ::String) at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\runmodel.jl:467
 [11] #dtm#110 at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\runmodel.jl:798 [inlined]
 [12] dtm(::DecisionTrees.DTMTable, ::ModelSettings) at C:\Users\bernhard.konig\Documents\ASync\home\Code\Julia\DecisionTrees.jl\src\runmodel.jl:798
 [13] top-level scope at none:0

1 Like

I was able to reproduce this. I’ll file an issue for you.

1 Like