Skip to content

Commit

Permalink
Fix VSCode problems
Browse files Browse the repository at this point in the history
  • Loading branch information
theogf committed Oct 28, 2020
1 parent c63fdb4 commit adb4870
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/inference/MCVI.jl
Expand Up @@ -151,7 +151,7 @@ end
function grad_expectations!(
m::AbstractGP{T,L,<:MCIntegrationVI{T,N}},
) where {T,L,N}
raw_samples = randn(inference(m).nMC, nLatent(m))
raw_samples = randn(T, inference(m).nMC, nLatent(m))
samples = similar(raw_samples)
μ = mean_f(m)
σ² = var_f(m)
Expand Down
2 changes: 1 addition & 1 deletion src/likelihood/heteroscedastic.jl
Expand Up @@ -44,7 +44,7 @@ function pdf(l::HeteroscedasticLikelihood, y::Real, f::AbstractVector)
end

function logpdf(l::HeteroscedasticLikelihood, y::Real, f::AbstractVector)
logpdf(Normal(y, inv(sqrt(l.λ * logistic(f[2])))), f[1])
Distributions.logpdf(Normal(y, inv(sqrt(l.λ * logistic(f[2])))), f[1])
end

function Base.show(io::IO, model::HeteroscedasticLikelihood{T}) where {T}
Expand Down
2 changes: 1 addition & 1 deletion src/mean/affinemean.jl
Expand Up @@ -22,7 +22,7 @@ end

function AffineMean(dims::Int; opt = ADAM(0.01))
AffineMean{Float64,Vector{Float64},typeof(opt)}(
randn(dims),
randn(Float64, dims),
[0.0],
dims,
opt,
Expand Down
2 changes: 1 addition & 1 deletion src/models/MOSVGP.jl
Expand Up @@ -147,7 +147,7 @@ function MOSVGP(

A = [
[
randn(nLatent) |> x -> x / sqrt(sum(abs2, x))
randn(T, nLatent) |> x -> x / sqrt(sum(abs2, x))
for i = 1:nf_per_task[j]
] for j = 1:nTask
]
Expand Down
2 changes: 1 addition & 1 deletion src/models/MOVGP.jl
Expand Up @@ -133,7 +133,7 @@ function MOVGP(

A = [
[
randn(nLatent) |> x -> x / sqrt(sum(abs2, x))
randn(T, nLatent) |> x -> x / sqrt(sum(abs2, x))
for i = 1:nf_per_task[j]
] for j = 1:nTask
]
Expand Down

0 comments on commit adb4870

Please sign in to comment.