Skip to content

mcda_test.jl: analyze_iris_data gives same results irregardless of the missing rate #3

@DanielEWeeks

Description

@DanielEWeeks

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 made epsilon smaller):

       (classes, epsilon, missing_rate) = (3, 1e-19, 0.80);
       analyze_iris_data(epsilon, missing_rate, classes) 
       end

       end
WARNING: replacing module McdaTest.
rank = 1 classification_errors = 1
rank = 2 classification_errors = 1
rank = 3 classification_errors = 1
rank = 4 classification_errors = 1
rank = 5 classification_errors = 1
rank = 6 classification_errors = 1
Test Summary: |Time
MCDA          | None  0.1s
Main.McdaTest

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.

julia>  versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.5.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions