Comments (3)
Is this the function I can use to get the centroids
TorchPQ/torchpq/clustering/KMeans.py
Line 365 in b8bbadf
from torchpq.
Hi, centroids are stored in instance variable named"centroids".
kmeans = KMeans(n_clusters=4)
kmeans.fit(x)
centroids = kmeans.centroids
from torchpq.
Hi, centroids are stored in instance variable named"centroids".
kmeans = KMeans(n_clusters=4) kmeans.fit(x) centroids = kmeans.centroids
Thank you very much!
from torchpq.
Related Issues (16)
- KMeans and MultiKMeans: CUDA_ERROR_INVALID_VALUE: invalid argument HOT 2
- Question about importing MultiKMeans HOT 6
- CUDA error distributed training HOT 4
- About SM Size HOT 6
- readme does not run HOT 1
- How to use MinibatchKMeans on multi GPUs machine? HOT 1
- Imports on CPU-only machine fail HOT 2
- Cupy HOT 1
- 您好 请问下我只想使用PQ方法,即论文中公式11之前的方法。用于将tensor聚类存储,计算的时候并能索引到。请问我应该怎么调用API HOT 1
- Assertion Error HOT 2
- pre-compute approximate pairwise distances between vectors to use in cuML UMAP HOT 1
- topk method missing HOT 1
- torchPQ in a deep nets HOT 9
- Import Error in Minibatch K means HOT 3
- Error while importing torchpq.clustering HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torchpq.