You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Thu, Mar 29, 2018 at 6:49 PM, nesrineZibani ***@***.***> wrote:
when I try to run the test I get this error :
TypeError Traceback (most recent call last)
in ()
3
4
----> 5 knn = KNNClassifier(k=1, topTreeSize=1, topTreeLeafSize=1,
subTreeLeafSize=1, bufferSizeSampleSize=[1, 2, 3]) # bufferSize=-1.0,
6 model = knn.fit(training_data)
7
C:\spark-2.2.1-bin-hadoop2.7\python\pyspark_*init*_.pyc in wrapper(self,
*args, **kwargs)
102 raise TypeError("Method %s forces keyword arguments." % func.*name*)
103 self._input_kwargs = kwargs
--> 104 return func(self, **kwargs)
105 return wrapper
106
C:\spark-2.2.1-bin-hadoop2.7\python\pyspark\ml\knn.py in *init*(self,
featuresCol, labelCol, predictionCol, seed, topTreeSize, topTreeLeafSize,
subTreeLeafSize, bufferSize, bufferSizeSampleSize, balanceThreshold, k,
neighborsCol, maxNeighbors, rawPredictionCol, probabilityCol)
17 super(KNNClassifier, self).*init*()
18 self._java_obj = self._new_java_obj(
---> 19 "org.apache.spark.ml.knn.KNNClassifier", self.uid)
20
21 self.topTreeSize = Param(self, "topTreeSize", "number of points to
sample for top-level tree")
C:\spark-2.2.1-bin-hadoop2.7\python\pyspark\ml\wrapper.pyc in
_new_java_obj(java_class, *args)
61 java_obj = getattr(java_obj, name)
62 java_args = [_py2java(sc, arg) for arg in args]
---> 63 return java_obj(*java_args)
64
65 @staticmethod <https://github.com/staticmethod>
TypeError: 'JavaPackage' object is not callable
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#35>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWfs-Jwf6YwxmgCQu1Yv84DkCcxVuwwks5tjN9FgaJpZM4TAUXN>
.
when I try to run the test I get this error :
TypeError Traceback (most recent call last)
in ()
3
4
----> 5 knn = KNNClassifier(k=1, topTreeSize=1, topTreeLeafSize=1, subTreeLeafSize=1, bufferSizeSampleSize=[1, 2, 3]) # bufferSize=-1.0,
6 model = knn.fit(training_data)
7
C:\spark-2.2.1-bin-hadoop2.7\python\pyspark_init_.pyc in wrapper(self, *args, **kwargs)
102 raise TypeError("Method %s forces keyword arguments." % func.name)
103 self._input_kwargs = kwargs
--> 104 return func(self, **kwargs)
105 return wrapper
106
C:\spark-2.2.1-bin-hadoop2.7\python\pyspark\ml\knn.py in init(self, featuresCol, labelCol, predictionCol, seed, topTreeSize, topTreeLeafSize, subTreeLeafSize, bufferSize, bufferSizeSampleSize, balanceThreshold, k, neighborsCol, maxNeighbors, rawPredictionCol, probabilityCol)
17 super(KNNClassifier, self).init()
18 self._java_obj = self._new_java_obj(
---> 19 "org.apache.spark.ml.knn.KNNClassifier", self.uid)
20
21 self.topTreeSize = Param(self, "topTreeSize", "number of points to sample for top-level tree")
C:\spark-2.2.1-bin-hadoop2.7\python\pyspark\ml\wrapper.pyc in _new_java_obj(java_class, *args)
61 java_obj = getattr(java_obj, name)
62 java_args = [_py2java(sc, arg) for arg in args]
---> 63 return java_obj(*java_args)
64
65 @staticmethod
TypeError: 'JavaPackage' object is not callable
The text was updated successfully, but these errors were encountered: