You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the problem? I am not sure if the trace_axes part has some influence?
The text was updated successfully, but these errors were encountered:
Gengfu-He
changed the title
The analytical output of GP can not fit the result of NNGP generated by the nt.predict.gp_inference when diag_reg_absolute_scale=True
The analytical output of GP can not fit the result of NNGP generated by the nt.predict.gp_inference
Apr 15, 2023
kernel_train = kernel_fn(train_xs, train_xs, 'nngp')
kernel_cov= kernel_fn(train_xs, test_xs, 'nngp')
Kff_inv = np.linalg.inv(kernel_train + noise_scale * noise_scale * np.mean(np.trace(kernel_train)) * np.eye(len(train_xs)))
mean_predict.analytical result = kernel_cov.T.dot(Kff_inv).dot(train_ys)
I have recently found that the analytical results above can not agree well with the predictions of nt.predict.gp_inference as follows:
predict_fn = nt.predict.gp_inference(kernel_train, train_ys, diag_reg=noise_scale*noise_scale)
k_test_test = kernel_fn(test_xs, None, 'nngp')
mean_predict.NNGP , covariance = predict_fn('nngp', kernel_cov.T, k_test_test)
What is the problem? I am not sure if the trace_axes part has some influence?
The text was updated successfully, but these errors were encountered: