You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an IndexError when writing np.arrays that have one dimension only, i.e. shape = (x, ). This is a common result in machine learning workflows, specially when running the predict method on an estimator.
The image shows a possible solution. This has some drawbacks, though, as the user could force the array to have a shape of (x, 1), and then it would work without modification to the object in the screenshot. The problem with letting the user doing is that might lead to lots of conversions to get the desired result, and it might break the consistency across user's workflows who might expect this to work out of the box.
The text was updated successfully, but these errors were encountered:
Oops, looks like too many DataFrames let you forget how numpy works...
I'd suggest an easier solution that will also cover higher order arrays, see #161
There is an IndexError when writing np.arrays that have one dimension only, i.e. shape = (x, ). This is a common result in machine learning workflows, specially when running the predict method on an estimator.
The image shows a possible solution. This has some drawbacks, though, as the user could force the array to have a shape of (x, 1), and then it would work without modification to the object in the screenshot. The problem with letting the user doing is that might lead to lots of conversions to get the desired result, and it might break the consistency across user's workflows who might expect this to work out of the box.
The text was updated successfully, but these errors were encountered: