Skip to content

Commit

Permalink
Update several dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
scorebot committed Sep 5, 2024
1 parent e11b3d3 commit 3da5d21
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ See the [PyPMML](https://github.com/autodeployai/pypmml) project. _PyPMML_ is a
See the [AI-Serving](https://github.com/autodeployai/ai-serving) project. _AI-Serving_ is serving AI/ML models in the open standard formats PMML and ONNX with both HTTP (REST API) and gRPC endpoints.

## Deploy and Manage AI/ML models at scale
See the [DaaS](https://www.autodeploy.ai/) system that deploys AI/ML models in production at scale on Kubernetes.
See the [DaaS](https://www.autodeployai.com/) system that deploys AI/ML models in production at scale on Kubernetes.

## Support
If you have any questions about the _PMML4S-Spark_ library, please open issues on this repository.
Expand Down
20 changes: 12 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inThisBuild(List(
"scorebot",
"Score Bot",
"[email protected]",
url("https://pmml4s.org")
url("https://github.com/scorebot")
)
)
))
Expand All @@ -25,17 +25,21 @@ scalacOptions in(Compile, doc) := Seq("-no-link-warnings")
crossPaths := false

libraryDependencies ++= {
Seq(
"org.pmml4s" %% "pmml4s" % "1.0.1",
"org.apache.spark" %% "spark-mllib" % "2.4.3" % "provided",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"junit" % "junit" % "4.12" % "test",
(CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor <= 11 =>
Some("org.apache.spark" %% "spark-mllib" % "2.4.8" % "provided")
case _ =>
Some("org.apache.spark" %% "spark-mllib" % "3.5.2" % "provided")
}).toSeq ++ Seq(
"org.pmml4s" %% "pmml4s" % "1.0.2",
"org.scalatest" %% "scalatest" % "3.2.15" % "test",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
}

scalaVersion := "2.12.8"
scalaVersion := "2.12.15"

// publishing

crossScalaVersions := Seq("2.12.8", "2.11.12")
crossScalaVersions := Seq("2.12.15", "2.11.12", "2.13.8")
7 changes: 3 additions & 4 deletions src/test/scala/org/pmml4s/spark/ScoreModelTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.pmml4s.pmml4spark
package org.pmml4s.spark

import org.apache.spark.sql.SparkSession
import org.pmml4s.spark.ScoreModel
import org.scalactic.TolerantNumerics
import org.scalatest.FunSuite
import org.scalatest.funsuite.AnyFunSuite

/**
* Iris.csv is from: http://dmg.org/pmml/pmml_examples/Iris.csv
* single_iris_dectree.xml is from: http://dmg.org/pmml/pmml_examples/KNIME_PMML_4.1_Examples/single_iris_dectree.xml
*/
class ScoreModelTest extends FunSuite {
class ScoreModelTest extends AnyFunSuite {

implicit val doubleEquality = TolerantNumerics.tolerantDoubleEquality(0.000001)

Expand Down

0 comments on commit 3da5d21

Please sign in to comment.