JuliaGaussianProcesses / LinearMixingModels.jl

http://proceedings.mlr.press/v119/bruinsma20a.html
MIT License
6 stars 0 forks source link

MethodError: logpdf(...) is ambiguous #41

Closed glennmoy closed 3 years ago

glennmoy commented 3 years ago

https://github.com/invenia/LinearMixingModels.jl/runs/4307126592?check_suite_focus=true https://github.com/invenia/LinearMixingModels.jl/runs/4307126592?check_suite_focus=true

independent_mogp: Error During Test at /home/runner/work/LinearMixingModels.jl/LinearMixingModels.jl/test/independent_mogp.jl:40
  Test threw exception
  Expression: isapprox(logpdf(fx, y_train), logpdf(fx1, y_1_train) + logpdf(fx2, y_2_train))
  MethodError: logpdf(::FiniteGP{IndependentMOGP{Vector{GP{AbstractGPs.ConstMean{Int64}, Tk} where Tk<:Kernel}}, MOInputIsotopicByOutputs{Float64, Vector{Float64}}, Diagonal{Float64, Fill{Float64, 1, Tuple{Base.OneTo{Int64}}}}}, ::Vector{Float64}) is ambiguous. Candidates:
    logpdf(f::FiniteGP, Y::AbstractVecOrMat{var"#s4"} where var"#s4"<:Real) in AbstractGPs at /home/runner/.julia/packages/AbstractGPs/0jusJ/src/finite_gp_projection.jl:307
    logpdf(ft::FiniteGP{var"#s4", var"#s3", var"#s2"} where {var"#s4"<:IndependentMOGP, var"#s3"<:MOInputIsotopicByOutputs, var"#s2"<:(Diagonal{var"#s1", var"#s6"} where {var"#s1"<:Real, var"#s6"<:Fill})}, y::AbstractVector{T} where T) in LinearMixingModels at /home/runner/work/LinearMixingModels.jl/LinearMixingModels.jl/src/independent_mogp.jl:76
  Possible fix, define
    logpdf(::FiniteGP{var"#s4", var"#s3", var"#s2"} where {var"#s4"<:IndependentMOGP, var"#s3"<:MOInputIsotopicByOutputs, var"#s2"<:(Diagonal{var"#s1", var"#s6"} where {var"#s1"<:Real, var"#s6"<:Fill})}, ::AbstractVector{T} where T<:Real)
  Stacktrace:
   [1] macro expansion
     @ ~/work/LinearMixingModels.jl/LinearMixingModels.jl/test/independent_mogp.jl:40 [inlined]
   [2] macro expansion
     @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1151 [inlined]
   [3] top-level scope
     @ ~/work/LinearMixingModels.jl/LinearMixingModels.jl/test/independent_mogp.jl:2