本文簡要介紹python語言中 torch.distributions.von_mises.VonMises 的用法。
- 用法:- class torch.distributions.von_mises.VonMises(loc, concentration, validate_args=None)
- loc(torch.Tensor) -以弧度為單位的角度。 
- concentration(torch.Tensor) -濃度參數 
 
- 基礎: - torch.distributions.distribution.Distribution- 圓形 von Mises 分布。 - 此實現使用極坐標。 - loc和- value參數可以是任何實數(以促進無約束優化),但被解釋為模 2 pi 的角度。- >>> m = dist.VonMises(torch.tensor([1.0]), torch.tensor([1.0])) >>> m.sample() # von Mises distributed with loc=1 and concentration=1 tensor([1.9777])
 - 例子:
參數:
相關用法
- Python PyTorch VideoReader用法及代碼示例
- Python PyTorch Vectors.get_vecs_by_tokens用法及代碼示例
- Python PyTorch VectorCrossNet用法及代碼示例
- Python PyTorch frexp用法及代碼示例
- Python PyTorch jvp用法及代碼示例
- Python PyTorch cholesky用法及代碼示例
- Python PyTorch vdot用法及代碼示例
- Python PyTorch ELU用法及代碼示例
- Python PyTorch ScaledDotProduct.__init__用法及代碼示例
- Python PyTorch gumbel_softmax用法及代碼示例
- Python PyTorch get_tokenizer用法及代碼示例
- Python PyTorch saved_tensors_hooks用法及代碼示例
- Python PyTorch positive用法及代碼示例
- Python PyTorch renorm用法及代碼示例
- Python PyTorch AvgPool2d用法及代碼示例
- Python PyTorch MaxUnpool3d用法及代碼示例
- Python PyTorch Bernoulli用法及代碼示例
- Python PyTorch Tensor.unflatten用法及代碼示例
- Python PyTorch Sigmoid用法及代碼示例
- Python PyTorch Tensor.register_hook用法及代碼示例
- Python PyTorch ShardedEmbeddingBagCollection.named_parameters用法及代碼示例
- Python PyTorch sqrt用法及代碼示例
- Python PyTorch PackageImporter.id用法及代碼示例
- Python PyTorch column_stack用法及代碼示例
- Python PyTorch diag用法及代碼示例
注:本文由純淨天空篩選整理自pytorch.org大神的英文原創作品 torch.distributions.von_mises.VonMises。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
