You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@predictionio.apache.org by muzhongjiang <gi...@git.apache.org> on 2017/09/17 15:24:06 UTC
[GitHub] incubator-predictionio-template-attribute-based-classifier pull request #5: ...
Github user muzhongjiang commented on a diff in the pull request:
https://github.com/apache/incubator-predictionio-template-attribute-based-classifier/pull/5#discussion_r139313248
--- Diff: src/main/scala/Engine.scala ---
@@ -3,11 +3,13 @@ package org.template.classification
import io.prediction.controller.EngineFactory
import io.prediction.controller.Engine
-class Query(
- val attr0 : Double,
- val attr1 : Double,
- val attr2 : Double
-) extends Serializable
+class Query extends Serializable{
+ var attrs: Seq[Double] = null
+ def this(attrs: Double*) {
+ this()
+ this.attrs = attrs
+ }
+}
--- End diff --
Up to you
---