我在这里输入代码时出现以下错误。在
rf = LinearSVC(labelCol="indexedLabel", maxIter=10, regParam=0.1)
pipeline = Pipeline(stages=[self.labelIndexer, self.featureIndexer, rf,
self.labelConverter])
model = pipeline.fit(self.trainingData)
IllegalArgumentException: u'requirement failed: LinearSVC only supports binary classification. 99 classes detected in LinearSVC_6596220b55a3__labelCol'
目前没有回答
相关问题 更多 >
编程相关推荐