Skip to content

Commit

Permalink
Relax noise estimation tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Jan 19, 2024
1 parent dcdecb2 commit c7b783d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gp/src/sgp_algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ mod tests {
.inducings(z.clone())
.initial_theta(Some(vec![0.1]))
.noise_variance(VarianceEstimation::Estimated {
initial_guess: 0.05,
initial_guess: 0.02,
bounds: (1e-3, 1.),
})
.fit(&Dataset::new(xt.clone(), yt.clone()))
Expand All @@ -899,7 +899,7 @@ mod tests {
println!("theta={:?}", sgp.theta());
println!("variance={:?}", sgp.variance());
println!("noise variance={:?}", sgp.noise_variance());
assert_abs_diff_eq!(eta2, sgp.noise_variance(), epsilon = 0.002);
assert_abs_diff_eq!(eta2, sgp.noise_variance(), epsilon = 0.003);
assert_abs_diff_eq!(&z, sgp.inducings(), epsilon = 0.0015);

let sgp_vals = sgp.predict_values(&xplot).unwrap();
Expand Down

0 comments on commit c7b783d

Please sign in to comment.