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

ranklasso, small bug #10

Open
Mufabo opened this issue Jan 21, 2020 · 0 comments
Open

ranklasso, small bug #10

Mufabo opened this issue Jan 21, 2020 · 0 comments

Comments

@Mufabo
Copy link

Mufabo commented Jan 21, 2020

ranklasso(randn(5,1), randn(5,2), 0.5)
Error using ones
Size inputs must be scalar.

Error in ranklasso (line 28)
b0 = [ones(n,1) X] \ y;

Fix:
change line 19 from n = size(X) to [n p] = size(X)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant