Github user ambauma commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19528#discussion_r146080089
  
    --- Diff: python/pyspark/mllib/classification.py ---
    @@ -173,7 +173,7 @@ def __init__(self, weights, intercept, numFeatures, 
numClasses):
                 self._dataWithBiasSize = None
                 self._weightsMatrix = None
             else:
    -            self._dataWithBiasSize = self._coeff.size / (self._numClasses 
- 1)
    +            self._dataWithBiasSize = self._coeff.size // (self._numClasses 
- 1)
    --- End diff --
    
    I had to apply this to get past a python unit test failure.  My assumption 
is that the NewSparkPullRequestBuilder is on a different version of numpy than 
when the Spark 1.6 branch was last built.  The current python unit test failure 
looks like it has to do with a novel version of SciPy.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to