Skip to content

Commit

Permalink
try a fix: don't form large diagonal matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
madeleineudell committed Jun 5, 2019
1 parent d1143e2 commit 60e4ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/initialize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function init_svd!(glrm::GLRM; offset=true, scale=true, TOL = 1e-10)
glrm.X[end,:] = 1
glrm.Y[end,:] = means
if scale
Astd = Astd*diagm(1./stds)
Astd = Astd ./ stds
end
if k <= 0
warn("Using an offset on a rank 1 model fits *only* the offset. To fit an offset + 1 low rank component, use k=2.")
Expand Down

0 comments on commit 60e4ed9

Please sign in to comment.