-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Scala 2.13 compatible build #860
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ services: | |
|
||
language: scala | ||
scala: | ||
- 2.12.18 | ||
- 2.13.11 | ||
jdk: | ||
- openjdk11 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ import java.util.UUID | |
import ml.combust.mleap.core.annotation.SparkCode | ||
|
||
import scala.collection.JavaConverters._ | ||
import scala.collection.parallel.CollectionConverters._ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @db-scnakandala There is an error while importing has this has been moved in Scala 2.13 to separate module [scala/scala-parallel-collection] This is where one build is failing. |
||
import scala.language.existentials | ||
import org.apache.hadoop.fs.Path | ||
import org.json4s.{DefaultFormats, JObject, _} | ||
|
@@ -355,7 +356,7 @@ final class OneVsRest @Since("1.4.0") ( | |
} | ||
|
||
// create k columns, one for each binary classifier. | ||
val models = Range(0, numClasses).par.map { index => | ||
val models = (0 until numClasses).par.map { index => | ||
// generate new label metadata for the binary problem. | ||
val newLabelMeta = BinaryAttribute.defaultAttr.withName("label").toMetadata() | ||
val labelColName = "mc2b$" + index | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we'll need to have both a scala 2.12 and a scala 2.13 distribution installed in travis (so the cross builds can run). Refer to travis docs for how to do this.