OutlierDetectionJL / OutlierDetectionNetworks.jl

Neural-Network Outlier Detection Algorithms for Julia
MIT License
7 stars 2 forks source link

DomainError with Supervised detectors #6

Closed ablaom closed 2 years ago

ablaom commented 2 years ago

On my machine the test suite is currently failing:

DSADDetector: Error During Test at /Users/anthony/.julia/packages/OutlierDetectionTest/5ctaJ/src/test_detector.jl:2
  Got exception outside of a @test
  DomainError with Supervised detectors can only be fitted with array
  inputs with one observation per last dimension, found X=Matrix{Float64}, y=Vector{String}:

  Stacktrace:
    [1] fit(::DSADDetector, X::Matrix{Float64}, y::Vector{String}; verbosity::Int64)
      @ OutlierDetectionInterface ~/.julia/packages/OutlierDetectionInterface/8U8oT/src/base.jl:137
    [2] macro expansion
      @ ~/.julia/packages/OutlierDetectionTest/5ctaJ/src/test_detector.jl:6 [inlined]
    [3] macro expansion
      @ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Test/src/Test.jl:1283 [inlined]
    [4] test_detector(detector::DSADDetector, data::TestData)
      @ OutlierDetectionTest ~/.julia/packages/OutlierDetectionTest/5ctaJ/src/test_detector.jl:3
    [5] run_test(detector::DSADDetector)
      @ Main ~/GoogleDrive/Julia/OutlierDetectionNetworks/test/runtests.jl:9
    [6] top-level scope
      @ ~/GoogleDrive/Julia/OutlierDetectionNetworks/test/runtests.jl:17
    [7] include(fname::String)
      @ Base.MainInclude ./client.jl:451
    [8] top-level scope
      @ none:6
    [9] eval
      @ ./boot.jl:373 [inlined]
   [10] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:268
   [11] _start()
      @ Base ./client.jl:495
Test Summary: | Error  Total
DSADDetector  |     1      1
ERROR: LoadError: Some tests did not pass: 0 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/anthony/GoogleDrive/Julia/OutlierDetectionNetworks/test/runtests.jl:17
ERROR: Package OutlierDetectionNetworks errored during testing
davnn commented 2 years ago

Fixed in https://github.com/JuliaRegistries/General/pull/66477