-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
mlpack - Python: LARS throws runtime error #3324
Comments
Indeed, your input looks reasonable and it should work. Out of curiosity, does the code succeed if you specify |
I tried train_y_px = [
[0],
[0.5],
[1],
] It also failed with the same error. |
Thanks for the report. It took a while to dig into it, but I found that the LARS method (and specifically LARS) happens to have a bug with how it is handled in the Python bindings, and some other languages too. If you want to read the details, check out #3327. Until that PR is merged and released, you can work around the bug by transposing your X data matrix, like this:
mlpack 4.0.1 will be released soon (next couple weeks?) with a fix. Thanks so much again for the report, and if you find more issues in the future please do not hesitate to report them! 👍 |
Great. Thank you! |
mlpack 4.0.1 is released now, so this should be solved. Thanks again for the report! 👍 |
Issue description
Your environment
Steps to reproduce
Code:
Result:
Expected behavior
The rows of X(input_) and responses are the same as three.
So it should return the dictionary without error.
Actual behavior
It throws a runtime error.
The text was updated successfully, but these errors were encountered: