sklearn.gaussian_process.kernels
.Hyperparameter¶
-
class
sklearn.gaussian_process.kernels.
Hyperparameter
[source]¶ A kernel hyperparameter’s specification in form of a namedtuple.
New in version 0.18.
- Attributes
name
stringAlias for field number 0
value_type
stringAlias for field number 1
bounds
pair of floats >= 0 or “fixed”Alias for field number 2
n_elements
int, default=1Alias for field number 3
fixed
bool, default: NoneAlias for field number 4
Methods
count
(self, value, /)Return number of occurrences of value.
index
(self, value[, start, stop])Return first index of value.
-
__init__
(self, /, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
-
__call__
(*args, **kwargs)¶ Call self as a function.
-
property
bounds
¶ Alias for field number 2
-
count
(self, value, /)¶ Return number of occurrences of value.
-
property
fixed
¶ Alias for field number 4
-
index
(self, value, start=0, stop=9223372036854775807, /)¶ Return first index of value.
Raises ValueError if the value is not present.
-
property
n_elements
¶ Alias for field number 3
-
property
name
¶ Alias for field number 0
-
property
value_type
¶ Alias for field number 1