Trigonometric module
- class nnodely.layers.trigonometric.Sin(*args, **kwargs)[source]
Implement the sine function given an input relation.
See also
Official PyTorch Sin documentation: torch.sin
- Parameters:
obj (Stream) – the input relation stream
Example:
sin = Sin(relation)
- class nnodely.layers.trigonometric.Cos(*args, **kwargs)[source]
Implement the cosine function given an input relation.
See also
Official PyTorch Cos documentation: torch.cos
- Parameters:
obj (Stream) – the input relation stream
Example:
cos = Cos(relation)
- class nnodely.layers.trigonometric.Tan(*args, **kwargs)[source]
Implement the tangent function given an input relation.
See also
Official PyTorch Tan documentation: torch.tan
- Parameters:
obj (Stream) – the input relation stream
Example:
tan = Tan(relation)
- class nnodely.layers.trigonometric.Tanh(*args, **kwargs)[source]
Implement the Hyperbolic Tangent (Tanh) relation function.
See also
Official PyTorch tanh documentation: torch.nn.Tanh
- Parameters:
obj (Stream) – The relation stream.
Example:
tanh = Tanh(relation)
- class nnodely.layers.trigonometric.Cosh(*args, **kwargs)[source]
Returns a new tensor with the hyperbolic cosine of the elements of input.
See also
Official PyTorch Cosh documentation: torch.cosh
- Parameters:
obj (Stream) – the input relation stream
Example:
cosh = Cosh(relation)