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
---