百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

s-vae-pytorch

> 编程语言
开源

Hyperspherical Variational Auto-Encoders 的 Pytorch 实现

392 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

Hyperspherical Variational Auto-Encoders 的 Pytorch 实现

Hyperspherical Variational Auto-Encoders

Pytorch implementation of Hyperspherical Variational Auto-Encoders

Overview

This library contains a Pytorch implementation of the hyperspherical variational auto-encoder, or S-VAE, as presented in [1](http://arxiv.org/abs/1804.00891). Check also our blogpost (https://nicola-decao.github.io/s-vae).

  • Don't use Pytorch? Take a look here for a tensorflow implementation!

Dependencies

  • python>=3.6
  • pytorch>=0.4.1: https://pytorch.org
  • scipy: https://scipy.org
  • numpy: https://www.numpy.org

Installation

To install, run

bash
$ python setup.py install

Structure

  • distributions: Pytorch implementation of the von Mises-Fisher and hyperspherical Uniform distributions. Both inherit from torch.distributions.Distribution.
  • ops: Low-level operations used for computing the exponentially scaled modified Bessel function of the first kind and its derivative.
  • examples: Example code for using the library within a PyTorch project.

Usage

Please have a look into the examples folder. We adapted our implementation to follow the structure of the Pytorch probability distributions.

Please cite [1] in your work when using this library in your experiments.

Sampling von Mises-Fisher

To sample the von Mises-Fisher distribution we follow the rejection sampling procedure as outlined by Ulrich, 1984. This simulation pipeline is visualized below:

Note that as is a scalar, this approach does not suffer from the curse of dimensionality. For the final transformation, , a Householder reflection is utilized.

Feedback

For questions and comments, feel free to contact Nicola De Cao or Tim Davidson.

License

MIT

Citation

[1] Davidson, T. R., Falorsi, L., De Cao, N., Kipf, T.,
and Tomczak, J. M. (2018). Hyperspherical Variational
Auto-Encoders. 34th Conference on Uncertainty in Artificial Intelligence (UAI-18).

BibTeX format:

@article{s-vae18,
  title={Hyperspherical Variational Auto-Encoders},
  author={Davidson, Tim R. and
          Falorsi, Luca and
          De Cao, Nicola and
          Kipf, Thomas and
          Tomczak, Jakub M.},
  journal={34th Conference on Uncertainty in Artificial Intelligence (UAI-18)},
  year={2018}
}

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythondeep-learninghyperspherical-vaemachine-learningmanifold-learning

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言