Last active
January 23, 2021 18:58
-
-
Save ShuaiGuo16/669758fe45a76fe952bc0afa5a79ba1b to your computer and use it in GitHub Desktop.
Create the initialization function
This file contains 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
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