This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The kernel function computes covariance between points using the RBF formula. | |
| The posterior predictive function calculates the mean and covariance of the GP posterior at new test points, using the kernel and training data. | |
| The noise term sigma_y accounts for observation (aleatoric) noise in training data. | |
| """ | |
| import numpy as np | |
| from numpy.linalg import inv |