Skip to content

Commit

Permalink
Setting the default needs to come after the value gets defined
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jul 31, 2015
1 parent 9e241d8 commit 6a38edb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ class StringIndexerInverse private[ml] (
* @group setParam
*/
def setLabels(value: Array[String]): this.type = set(labels, value)
setDefault(labels -> Array.empty[String])

/**
* Param for array of labels.
Expand All @@ -203,6 +202,7 @@ class StringIndexerInverse private[ml] (
* @group param
*/
final val labels: StringArrayParam = new StringArrayParam(this, "labels", "array of labels")
setDefault(labels, Array.empty[String])

/** @group getParam
* Optional labels to be provided by the user, if not supplied column
Expand Down

0 comments on commit 6a38edb

Please sign in to comment.