Skip to content

Commit e52827e

Browse files
committed
New corrections
1 parent 84e0a11 commit e52827e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Predictions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function studentpredictprobamc(model::GPModel,X_test;nSamples=100)
266266
st = TDist(model.ν)
267267
temp_array = zeros(Float64,nSamples)
268268
for i in 1:nTest
269-
if cov_f[i] <= min_cov
269+
if cov_f[i] <= 1e-3
270270
pyf = LocationScale(m_f[i],1.0,st)
271271
for j in 1:nSamples
272272
temp_array[j] = rand(pyf)

src/functions/PerturbativeCorrection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function correctedpredict(model,X_test)
5454
f=function(x)
5555
return logit(x)*pdf(d,x)
5656
end
57-
predic[i] = quadgk(f,meanfstar_corr[i]-10*covfstar_corr[i],meanfstar_corr[i]+10*covfstar_corr[i])[1]
57+
predic[i] = expectation(logit,d)
5858
end
5959
return predic,meanfstar_corr,covfstar_corr
6060
end

0 commit comments

Comments
 (0)