/usr/local/lib64/python3.6/site-packages/torch/distributions/__pycache__
NameSizeModeActions
bernoulli.cpython-36.pyc44450644editdlrm
beta.cpython-36.pyc36820644editdlrm
binomial.cpython-36.pyc47610644editdlrm
categorical.cpython-36.pyc58130644editdlrm
cauchy.cpython-36.pyc33100644editdlrm
chi2.cpython-36.pyc14190644editdlrm
constraints.cpython-36.pyc222170644editdlrm
constraint_registry.cpython-36.pyc98950644editdlrm
continuous_bernoulli.cpython-36.pyc80770644editdlrm
dirichlet.cpython-36.pyc40850644editdlrm
distribution.cpython-36.pyc118220644editdlrm
exponential.cpython-36.pyc33630644editdlrm
exp_family.cpython-36.pyc28760644editdlrm
fishersnedecor.cpython-36.pyc32120644editdlrm
gamma.cpython-36.pyc34550644editdlrm
geometric.cpython-36.pyc41830644editdlrm
gumbel.cpython-36.pyc28640644editdlrm
half_cauchy.cpython-36.pyc29300644editdlrm
half_normal.cpython-36.pyc28210644editdlrm
independent.cpython-36.pyc45060644editdlrm
kl.cpython-36.pyc258440644editdlrm
kumaraswamy.cpython-36.pyc30400644editdlrm
laplace.cpython-36.pyc34420644editdlrm
lkj_cholesky.cpython-36.pyc45750644editdlrm
logistic_normal.cpython-36.pyc23200644editdlrm
log_normal.cpython-36.pyc24380644editdlrm
lowrank_multivariate_normal.cpython-36.pyc80740644editdlrm
mixture_same_family.cpython-36.pyc70730644editdlrm
multinomial.cpython-36.pyc50200644editdlrm
multivariate_normal.cpython-36.pyc85340644editdlrm
negative_binomial.cpython-36.pyc41490644editdlrm
normal.cpython-36.pyc41380644editdlrm
one_hot_categorical.cpython-36.pyc51730644editdlrm
pareto.cpython-36.pyc25160644editdlrm
poisson.cpython-36.pyc26820644editdlrm
relaxed_bernoulli.cpython-36.pyc55950644editdlrm
relaxed_categorical.cpython-36.pyc55630644editdlrm
studentT.cpython-36.pyc34830644editdlrm
transformed_distribution.cpython-36.pyc73350644editdlrm
transforms.cpython-36.pyc429810644editdlrm
uniform.cpython-36.pyc35800644editdlrm
utils.cpython-36.pyc68020644editdlrm
von_mises.cpython-36.pyc50790644editdlrm
weibull.cpython-36.pyc27370644editdlrm
__init__.cpython-36.pyc59810644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/distributions/__pycache__/studentT.cpython-36.pyc (3483B)
3 Eg @s`ddlZddlZddlmZmZddlmZmZddlm Z ddl m Z m Z Gddde Z dS)N)infnan)Chi2 constraints) Distribution)_standard_normal broadcast_allcseZdZdZejejejdZejZdZ e ddZ e ddZ dfd d Z dfd d ZejfddZddZddZZS)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 )dflocscaleTcCs"|jjtjd}t||jdk<|S)N) memory_format)r clonetorchcontiguous_formatrr )selfmrH/usr/local/lib64/python3.6/site-packages/torch/distributions/studentT.pymeansz StudentT.meancCs~|jjtjd}|j|jdkjd|j|jdk|j|jdkd||jdk<t||jdk|jdk@<t||jdk<|S)N)r r)r rrrr powrr)rrrrrvariance$s DzStudentT.variance?NcsFt|||\|_|_|_t|j|_|jj}tt|j ||ddS)N) validate_args) rr r r r_chi2sizesuperr __init__)rr r r r batch_shape) __class__rrr ,s  zStudentT.__init__csn|jt|}tj|}|jj||_|jj||_|jj||_|jj||_t t|j |dd|j |_ |S)NF)r) Z_get_checked_instancer rSizer expandr r rrr _validate_args)rr!Z _instancenew)r"rrr$2s  zStudentT.expandcCsP|j|}t||jj|jjd}|jj|}|tj||j}|j |j |S)N)dtypedevice) Z_extended_shaperr r'r(rrsamplerZrsqrtr r )rZ sample_shapeshapeXZYrrrr)=s   zStudentT.rsamplecCs|jr|j|||j|j}|jjd|jjdtjtjtj d|jtj d|jd}d|jdtj |d|j|S)Ng?g?g@g) r%Z_validate_sampler r logr mathpirlgammalog1p)rvalueyr,rrrlog_probKs  6zStudentT.log_probcCs|tjd|jtjdtjd|jd}|jjd|jdtjd|jdtjd|jd|jj|S)Ng?r)rr1r r/r r.Zdigamma)rZlbetarrrentropyVs.zStudentT.entropy)rrN)N)__name__ __module__ __qualname____doc__rZpositiverealZarg_constraintsZsupportZ has_rsamplepropertyrrr r$rr#r)r5r6 __classcell__rr)r"rr s    r )r/rZ torch._sixrrZtorch.distributionsrrZ torch.distributions.distributionrZtorch.distributions.utilsrrr rrrrs