官术网_书友最值得收藏!

  • Scala for Data Science
  • Pascal Bugnion
  • 150字
  • 2021-07-23 14:33:03

Installing Breeze

If you have downloaded the code examples for this book, the easiest way of using Breeze is to go into the chap02 directory and type sbt console at the command line. This will open a Scala console in which you can import Breeze.

If you want to build a standalone project, the most common way of installing Breeze (and, indeed, any Scala module) is through SBT. To fetch the dependencies required for this chapter, copy the following lines to a file called build.sbt, taking care to leave an empty line after scalaVersion:

scalaVersion := "2.11.7"

libraryDependencies ++= Seq(
  "org.scalanlp" %% "breeze" % "0.11.2",
  "org.scalanlp" %% "breeze-natives" % "0.11.2"
)

Open a Scala console in the same directory as your build.sbt file by typing sbt console in a terminal. You can check that Breeze is working correctly by importing Breeze from the Scala prompt:

scala> import breeze.linalg._
import breeze.linalg._
主站蜘蛛池模板: 潜山县| 兴宁市| 射阳县| 乐至县| 河池市| 托里县| 古蔺县| 临沂市| 寿阳县| 高清| 万宁市| 广丰县| 阳原县| 尼玛县| 彝良县| 星子县| 龙胜| 扎囊县| 如东县| 营山县| 天长市| 玉溪市| 泰宁县| 南雄市| 威宁| 遂川县| 永昌县| 通辽市| 姜堰市| 加查县| 定日县| 武定县| 永宁县| 凉城县| 博野县| 益阳市| 三台县| 南漳县| 郸城县| 诸城市| 沛县|