← 开源

Gaussian mixture models in PyTorch.

Model DevelopmentClassical MLPython
增长势头
+024 小时新增 Star0.0%
586
Star
88
Fork
+0
本周
4
贡献者
创建于 2018-06-13 · 更新于 2026-10-26 · 今日第 21229 名
主要开发者
ldeeckeluyvleifubel
README

This repository contains an implementation of a simple Gaussian mixture model (GMM) fitted with Expectation-Maximization in pytorch. The interface closely follows that of sklearn.


A new model is instantiated by calling gmm.GaussianMixture(..) and providing as arguments the number of components, as well as the tensor dimension. Note that once instantiated, the model expects tensors in a flattened shape (n, d).

The first step would usually be to fit the model via model.fit(data), then predict with model.predict(data). To reproduce the above figure, just run the provided example.py.

Some sanity checks can be executed by calling python test.py. To fit data on GPUs, ensure that you first call model.cuda().

排名相邻
同类项目

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载