DecisionTree.jl
DecisionTree.jl copied to clipboard
Does not handle Adjoint nor Transposed features
in https://white.ucc.asn.au/2017/01/24/JuliaML-and-TensorFlow-Tuitorial.html rows and columns are swapped, as columns are labeled samples instead of rows
ERROR: LoadError: MethodError: no method matching build_tree(::Array{Bool,1}, ::LinearAlgebra.Adjoint{Int64,Array{Int64,2}}, ...
using DecisionTree
import ScikitLearnBase: fit!
features = [1 2;4 5;3 6]
labels = [true,false]
println("As array");fit!(DecisionTreeClassifier(), convert(Array{Float64,2},features'), labels)
println("Adjoint");fit!(DecisionTreeClassifier(), features', labels)
Thanks for raising this. It may take a long time, because we are in the process of overhauling the library, but I will try to make accommodations for this issue.