gpytorch.means

Parameter Constraints

Interval

class gpytorch.constraints.Interval(lower_bound, upper_bound, transform=<MagicMock id='140623326141072'>, inv_transform=<function inv_sigmoid>, initial_value=None)[source]
initial_value

The initial parameter value (if specified, None otherwise)

intersect(other)[source]

Returns a new Interval constraint that is the intersection of this one and another specified one.

Args:
other (Interval): Interval constraint to intersect with
Returns:
Interval: intersection if this interval with the other one.
inverse_transform(transformed_tensor)[source]

Applies the inverse transformation.

transform(tensor)[source]

Transforms a tensor to satisfy the specified bounds.

If upper_bound is finite, we assume that self.transform saturates at 1 as tensor -> infinity. Similarly, if lower_bound is finite, we assume that self.transform saturates at 0 as tensor -> -infinity.

Example transforms for one of the bounds being finite include torch.exp and torch.nn.functional.softplus. An example transform for the case where both are finite is torch.nn.functional.sigmoid.

GreaterThan

class gpytorch.constraints.GreaterThan(lower_bound, transform=<MagicMock id='140623328496384'>, inv_transform=<function inv_softplus>, initial_value=None)[source]

Positive

class gpytorch.constraints.Positive(transform=<MagicMock id='140623328496384'>, inv_transform=<function inv_softplus>, initial_value=None)[source]

LessThan

class gpytorch.constraints.LessThan(upper_bound, transform=<MagicMock id='140623328496384'>, inv_transform=<function inv_softplus>)[source]