コード例 #1
0
ファイル: stream.py プロジェクト: saromanov/topic-extraction
class Clustering:
    def __init__(self, centroids, weights):
        self.sparks = StreamingKMeans(centroids, weights)
        self.model = None

    def update(self, frame):
        self.sparks.parallelize(frame, 2)
        return self.spark.update(frame, 1, u"batches")
コード例 #2
0
class Clustering:
	def __init__(self, centroids, weights):
		self.sparks = StreamingKMeans(centroids, weights)
		self.model = None

	def update(self, frame):
		self.sparks.parallelize(frame,2)
		return self.spark.update(frame, 1, u"batches")
コード例 #3
0
ファイル: stream.py プロジェクト: saromanov/topic-extraction
 def __init__(self, centroids, weights):
     self.sparks = StreamingKMeans(centroids, weights)
     self.model = None
コード例 #4
0
	def __init__(self, centroids, weights):
		self.sparks = StreamingKMeans(centroids, weights)
		self.model = None