Skip to content

Instantly share code, notes, and snippets.

@ShuaiGuo16
Last active January 23, 2021 18:58
Show Gist options
  • Save ShuaiGuo16/669758fe45a76fe952bc0afa5a79ba1b to your computer and use it in GitHub Desktop.
Save ShuaiGuo16/669758fe45a76fe952bc0afa5a79ba1b to your computer and use it in GitHub Desktop.
Create the initialization function
class GaussianProcess:
"""A Gaussian Process class for creating and exploiting
a Gaussian Process model"""
def __init__(self, n_restarts, optimizer):
"""Initialize a Gaussian Process model
Input
------
n_restarts: number of restarts of the local optimizer
optimizer: algorithm of local optimization"""
self.n_restarts = n_restarts
self.optimizer = optimizer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment