-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
SPARK-1428: MLlib should convert non-float64 NumPy arrays to float64 instead of complaining #356
Conversation
@techaddict Is it easy to add a test to verify that it works? |
@mengxr ok i'll try adding some test's |
Jenkins, this is ok to test |
You should also check that the vector does not contain complex numbers, since that is the one NumPy data type we can't convert to floats. You can do
|
@mateiz updated, should i add tests too (IMHO i don't think there is need, because its a trivial patch ) ? |
Actually one more thing, can you set copy=true in astype (or just not set it)? I'm not sure that it preserves the right byte order and such and I know that this works with copy=true. Also we don't want to mess with the user's input data. |
Sorry meant true, not false. |
@mateiz You mean |
@mateiz is there any other problem ? |
This seems to be failing tests unfortunately -- click through to the Jenkins log. This is what it says:
|
This is why it would be good to add a test actually. For instance you can add a test with |
…instead of complaining
@mateiz done working now 👍 |
Thanks Sandeep. Merged into master and 1.0. |
Can one of the admins verify this patch? |
…instead of complaining Author: Sandeep <[email protected]> Closes #356 from techaddict/1428 and squashes the following commits: 3bdf5f6 [Sandeep] SPARK-1428: MLlib should convert non-float64 NumPy arrays to float64 instead of complaining (cherry picked from commit 3bd3129) Signed-off-by: Matei Zaharia <[email protected]>
…instead of complaining Author: Sandeep <[email protected]> Closes apache#356 from techaddict/1428 and squashes the following commits: 3bdf5f6 [Sandeep] SPARK-1428: MLlib should convert non-float64 NumPy arrays to float64 instead of complaining
…ndpoint Enable legacy endpoint format for docker-machine
No description provided.