/usr/local/lib64/python3.6/site-packages/torch/distributions/__pycache__
Edit: /usr/local/lib64/python3.6/site-packages/torch/distributions/__pycache__/studentT.cpython-36.pyc (3483B)
3
Eg
@ s` d dl Z d dlZd dlmZmZ d dlmZmZ d dlm Z d dl
mZmZ G dd de Z
dS ) N)infnan)Chi2constraints)Distribution)_standard_normal
broadcast_allc s e Zd ZdZejejejdZejZdZ e
dd Ze
dd Zd fdd Z
d fd
d Zej fddZdd Zdd Z ZS )StudentTa
Creates a Student's t-distribution parameterized by degree of
freedom :attr:`df`, mean :attr:`loc` and scale :attr:`scale`.
Example::
>>> m = StudentT(torch.tensor([2.0]))
>>> m.sample() # Student's t-distributed with degrees of freedom=2
tensor([ 0.1046])
Args:
df (float or Tensor): degrees of freedom
loc (float or Tensor): mean of the distribution
scale (float or Tensor): scale of the distribution
)dflocscaleTc C s" | j jtjd}t|| jdk<