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
namestring

Alias for field number 0

value_typestring

Alias for field number 1

boundspair of floats >= 0 or “fixed”

Alias for field number 2

n_elementsint, default=1

Alias for field number 3

fixedbool, default: None

Alias 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