Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
address comments
  • Loading branch information
WeichenXu123 committed Apr 17, 2018
commit 9a4a0ca43185d46800a9e29c9c3b0a139a1e29e9
6 changes: 3 additions & 3 deletions python/pyspark/ml/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ class SummaryBuilder(JavaWrapper):
.. versionadded:: 2.4.0

"""
def __init__(self, js):
self._js = js
def __init__(self, jSummaryBuilder):
super(SummaryBuilder, self).__init__(jSummaryBuilder)

@since("2.4.0")
def summary(self, featuresCol, weightCol=None):
Expand All @@ -383,7 +383,7 @@ def summary(self, featuresCol, weightCol=None):
structure is determined during the creation of the builder.
"""
featuresCol, weightCol = Summarizer._check_param(featuresCol, weightCol)
return Column(self._js.summary(featuresCol._jc, weightCol._jc))
return Column(self._java_obj.summary(featuresCol._jc, weightCol._jc))


if __name__ == "__main__":
Expand Down