aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/mllib/__init__.py
diff options
context:
space:
mode:
authorSandeep <sandeep@techaddict.me>2014-04-15 00:19:43 -0700
committerMatei Zaharia <matei@databricks.com>2014-04-15 00:19:43 -0700
commitdf360917990ad95dde3c8e016ec42507d1566355 (patch)
tree621930a449382e043e58628a08db6e00d0843261 /python/pyspark/mllib/__init__.py
parentc99bcb7feaa761c5826f2e1d844d0502a3b79538 (diff)
downloadspark-df360917990ad95dde3c8e016ec42507d1566355.tar.gz
spark-df360917990ad95dde3c8e016ec42507d1566355.tar.bz2
spark-df360917990ad95dde3c8e016ec42507d1566355.zip
SPARK-1426: Make MLlib work with NumPy versions older than 1.7
Currently it requires NumPy 1.7 due to using the copyto method (http://docs.scipy.org/doc/numpy/reference/generated/numpy.copyto.html) for extracting data out of an array. Replace it with a fallback Author: Sandeep <sandeep@techaddict.me> Closes #391 from techaddict/1426 and squashes the following commits: d365962 [Sandeep] SPARK-1426: Make MLlib work with NumPy versions older than 1.7 Currently it requires NumPy 1.7 due to using the copyto method (http://docs.scipy.org/doc/numpy/reference/generated/numpy.copyto.html) for extracting data out of an array. Replace it with a fallback
Diffstat (limited to 'python/pyspark/mllib/__init__.py')
-rw-r--r--python/pyspark/mllib/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/pyspark/mllib/__init__.py b/python/pyspark/mllib/__init__.py
index 538ff26ce7..4149f54931 100644
--- a/python/pyspark/mllib/__init__.py
+++ b/python/pyspark/mllib/__init__.py
@@ -19,8 +19,8 @@
Python bindings for MLlib.
"""
-# MLlib currently needs and NumPy 1.7+, so complain if lower
+# MLlib currently needs and NumPy 1.4+, so complain if lower
import numpy
-if numpy.version.version < '1.7':
- raise Exception("MLlib requires NumPy 1.7+")
+if numpy.version.version < '1.4':
+ raise Exception("MLlib requires NumPy 1.4+")