Skip to content

Commit c80e451

Browse files
committed
Add ignore_unicode_prefix
1 parent ee8ce16 commit c80e451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/pyspark/mllib/clustering.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
from numpy import array, random, tile
2727

28-
from pyspark import RDD
2928
from pyspark import SparkContext
29+
from pyspark.rdd import RDD, ignore_unicode_prefix
3030
from pyspark.mllib.common import callMLlibFunc, callJavaFunc, _py2java, _java2py
3131
from pyspark.mllib.linalg import SparseVector, _convert_to_vector, DenseVector
3232
from pyspark.mllib.stat.distribution import MultivariateGaussian
@@ -328,6 +328,7 @@ def getClusterWeights(self):
328328
"""Convenience method to return the cluster weights."""
329329
return self._clusterWeights
330330

331+
@ignore_unicode_prefix
331332
def update(self, data, decayFactor, timeUnit):
332333
"""Update the centroids, according to data
333334

0 commit comments

Comments
 (0)