I am new to julia so i might ask a strange question. 
So far i've been programming quite smoothly, but type managing leads me 
astray. 

I have 1d arrays i want to apply a confusion matrix function to from the 
MLBase library.
http://mlbasejl.readthedocs.io/en/latest/perfeval.html

However i have unmatching types. 

typeof(y1)

Array{String,1}:

typeof(y2)
Array{Any,1}


When i apply the confusion matrix on those variables:

k=4
confusmat(k, y1, y2)


i get:

LoadError: MethodError: no method matching confusmat(::Int64, 
::Array{String,1}, ::Array{Any,1})
Closest candidates are:



So now i probably need to convert y2 to a Array{String,1}
I can't find out how to convert y2 to Array{String,1}
Can anyone please help?

Reply via email to