Skip to content

Is this the best way to peform dimensionality reduction with PCA in dlib? #2976

Closed Answered by davisking
arrufat asked this question in Q&A
Discussion options

You must be logged in to vote

You have

    const matrix<float, 0, 0> pca = normalizer.pca_matrix();
    normalizer.train(embeddings, 1);

backwards, but yeah that's all there is in dlib. In the past whenever I was doing this stuff it was at work and just kinda different each time. Depends on the context. Like often you just call svd() directly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arrufat
Comment options

Answer selected by arrufat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants