edelwace-0.1.0.0: HaskTorch Reinforcement Learning Agents for GACE
Safe HaskellNone
LanguageHaskell2010

Normal

Synopsis

Documentation

data Normal Source #

Creates a normal (also called Gaussian) distribution parameterized by loc and scale. Example:

>>> m = Normal (asTensor ([0.0] :: [Float])) (asTensor ([1.0] :: [Float]))
>>> sample m []
Tensor Float [1] [-0.1205   ]

Constructors

Normal 

Fields

  • loc :: Tensor

    mean of the distribution (often referred to as mu)

  • scale :: Tensor

    standard deviation of the distribution (often referred to as sigma)

Instances

Instances details
Show Normal Source # 
Instance details

Defined in Normal

Distribution Normal Source # 
Instance details

Defined in Normal

prob :: Normal -> Tensor -> Tensor Source #

PDF for given Normal Distribution