Closed ahwillia closed 9 years ago
So this is essentially occurring because k
is decremented and becomes zero on this line: https://github.com/madeleineudell/LowRankModels.jl/blob/master/src/initialize.jl#L53
Seems like a subjective call on how to fix this. Maybe leave the code as is, but throw an error when k=0
telling the user to set offset=false
to initialize a rank-one model with demeaned data.
Yes, I think a warning would be the right thing here. Thanks for catching that. On Aug 1, 2015 11:19 PM, "Alex Williams" notifications@github.com wrote:
So this is essentially occurring because k is decremented and becomes zero on this line: https://github.com/madeleineudell/LowRankModels.jl/blob/master/src/initialize.jl#L53
Seems like a subjective call on how to fix this. Maybe leave the code as is, but throw an error when k=0 telling the user to set offset=false to initialize a rank-one model with demeaned data.
— Reply to this email directly or view it on GitHub https://github.com/madeleineudell/LowRankModels.jl/issues/28#issuecomment-126994026 .
Minor issue I happened to come across. I might try to chase this down this afternoon.
Produces an error:
This seems to only be an issue for rank-one models (changing
k
to be 2 or 3 fixes it).