aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/mllib/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/mllib/tree.py')
-rw-r--r--python/pyspark/mllib/tree.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/pyspark/mllib/tree.py b/python/pyspark/mllib/tree.py
index 1e0006df75..2518001ea0 100644
--- a/python/pyspark/mllib/tree.py
+++ b/python/pyspark/mllib/tree.py
@@ -25,7 +25,9 @@ from pyspark.mllib._common import \
from pyspark.mllib.regression import LabeledPoint
from pyspark.serializers import NoOpSerializer
+
class DecisionTreeModel(object):
+
"""
A decision tree model for classification or regression.
@@ -77,6 +79,7 @@ class DecisionTreeModel(object):
class DecisionTree(object):
+
"""
Learning algorithm for a decision tree model
for classification or regression.
@@ -174,7 +177,6 @@ class DecisionTree(object):
categoricalFeaturesInfo,
impurity, maxDepth, maxBins)
-
@staticmethod
def train(data, algo, numClasses, categoricalFeaturesInfo,
impurity, maxDepth, maxBins=100):