Open DanielEWeeks opened 1 year ago
Looks like, for Julia Version 1.8.5, this line here in test/mcda_test.jl
:
errors = count(class - imputedclass != 0);
should instead now be:
errors = count(class - imputedclass .!= 0);
with the dot operator.
Simple example:
julia> a
3-element Vector{Int64}:
1
1
1
julia> b
3-element Vector{Int64}:
1
0
0
julia> d = a-b
3-element Vector{Int64}:
0
1
1
julia> count(a-b != 0)
1
julia> count(a-b .!= 0)
2
If I copy the mcda_test.jl code into the Julia terminal, it always gives the same results, no matter if I change
missing_rate
. For example, here I put it to 80% but it still returns one classification error across all ranks (and madeepsilon
smaller):Also, as I am a Julia newbie, could you tell me how to run
analyze_iris_data
without copying/pasting code? Looks like it is within a module and is not exported.