Skip to content

Commit

Permalink
[jvm-packages] Add back reg:linear for scala. (#4490)
Browse files Browse the repository at this point in the history
* Add back reg:linear for scala.

* Fix linter.
  • Loading branch information
trivialfis authored and CodingCat committed May 23, 2019
1 parent 278562d commit 0ce300e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ private[spark] trait LearningTaskParams extends Params {
}

private[spark] object LearningTaskParams {
val supportedObjective = HashSet("reg:squarederror", "reg:logistic", "binary:logistic",
"binary:logitraw", "count:poisson", "multi:softmax", "multi:softprob", "rank:pairwise",
"rank:ndcg", "rank:map", "reg:gamma", "reg:tweedie")
val supportedObjective = HashSet("reg:linear", "reg:squarederror", "reg:logistic",
"binary:logistic", "binary:logitraw", "count:poisson", "multi:softmax", "multi:softprob",
"rank:pairwise", "rank:ndcg", "rank:map", "reg:gamma", "reg:tweedie")

val supportedObjectiveType = HashSet("regression", "classification")

Expand Down

0 comments on commit 0ce300e

Please sign in to comment.