Skip to content

Implementation of Guassion Process (GP) for regreesion with the exponential-quadratic kernel function.

License

Notifications You must be signed in to change notification settings

yuhung1206/Gaussian-Process-for-Regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gaussian-Process-for-Regression

  • Implementation of Gaussian Process (GP) for regreesion with the exponential-quadratic kernel function.
  • We have 100 pairs of samples (x,t) in 'gp.mat' for training & testing.
    Consider the 60% as traing data, 40% as testing.
  • Given that the input x is limited in [0,2], predict the target t using GP.

Implmentation process

  1. Calculate the kernel matrix from the first 60 samples using the following equation:
    image

  2. Calculate the Covariance matrix
    image
    image has values when n = m, so image is equal to image

  3. Calculate the kernel vecotr suing testing & training input x using the following equation:
    image

  4. Calaulate the variance c of test set
    image

  5. Obtain the prediction of tset set
    image
    image represent the t in train set

    • Mean & Variance of predict distribution
      image

Investigate the Predict distribution

  • The procedure is similar to the above implementation:
    Replace the input for test set with all the value in x-domain like [0, 0.01, 0.02, ... 2]
  • Visualization:
    image

Fine-tuning with different combinations of hyperparameters

  • Evaluation parameter is root-mean-square (RMS)
    image

  • Comparison Table:
    image

    It was found that the results of prediction are more accurate for Train & Test set when using the parameters {1,32,5,5}.

  • Further Analysis:
    To validate the individual influence of theta_0, theta_1, theta_2 and theta_3, we try the combination like [1,0,0,0], [0,1,0,0], [0,0,1,0] and [0,0,0,1] for GP Regression.
    image
    It was found that the prediction will be degraded to linear regression if the other three values are all zero.

Best Combination for given dataset - ARD

  • automatic relevance determination (ARD)
    image

About

Implementation of Guassion Process (GP) for regreesion with the exponential-quadratic kernel function.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages