Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUR/PCA + Darrays #1

Open
emmanuellujan opened this issue Feb 21, 2024 · 0 comments
Open

CUR/PCA + Darrays #1

emmanuellujan opened this issue Feb 21, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@emmanuellujan
Copy link
Member

emmanuellujan commented Feb 21, 2024

Hi @jpsamaroo, could you take a look at the following code?, what needs to be changed to use CUR and PCA with Darrays? Thanks!

using MultivariateStats
using LowRankApprox
using Distributed; addprocs(2) 
using Dagger

N, M = 1000, 200
N′ = 100 # reduced no. of features(cols)
m = rand(N, M)
Dm = distribute(m, Blocks(N÷2, M))

rows, cols = cur(Dm)

pca_model = fit(PCA, Dm', maxoutdim = N′)
m_pca = predict(m_pca_cur_model, Dm')'
@emmanuellujan emmanuellujan added the question Further information is requested label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants