Faiss: Can I save my PCA matrix?

Created on 16 May 2018  路  2Comments  路  Source: facebookresearch/faiss

I've trained a PCA matrix, can I dump it to a file and load it latter?
I'm using python.
Thanks.

Most helpful comment

Yes, turns out that you can.

PCA = faiss.PCAMatrix(2048,256)
faiss.write_VectorTransform(PCA, "PCA.pca")
PCA2 = faiss.read_VectorTransform("PCA.pca")

All 2 comments

Yes, turns out that you can.

PCA = faiss.PCAMatrix(2048,256)
faiss.write_VectorTransform(PCA, "PCA.pca")
PCA2 = faiss.read_VectorTransform("PCA.pca")

so the matrix are not PCA matrix, can I dump it into a file and load it later?
I am using python.
Thank you.

Was this page helpful?
0 / 5 - 0 ratings