Skip to content

Commit

Permalink
[SPARK-5726] [MLLIB] Pass style checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ogeagla committed May 7, 2015
1 parent e436896 commit 1dffeee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class ElementwiseProduct extends UnaryTransformer[Vector, Vector, ElementwisePro

/** the vector to multiply with input vectors */
val scalingVec : Param[Vector] = new Param(this, "scalingVector", "vector for hadamard product")
def setScalingVec(value: Vector) = set(scalingVec, value)
def getScalingVec: Vector = get(scalingVec)
def setScalingVec(value: Vector): this.type = set(scalingVec, value)
def getScalingVec: Vector = getOrDefault(scalingVec)

override protected def createTransformFunc(paramMap: ParamMap): Vector => Vector = {
val elemScaler = new feature.ElementwiseProduct(paramMap(scalingVec))
Expand Down

0 comments on commit 1dffeee

Please sign in to comment.