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

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._
主站蜘蛛池模板: 安溪县| 永德县| 永顺县| 德格县| 隆化县| 水富县| 闵行区| 峨眉山市| 河曲县| 砚山县| 隆林| 皮山县| 西林县| 巴林左旗| 游戏| 栾城县| 含山县| 东乡县| 防城港市| 莆田市| 夏河县| 蕲春县| 和田市| 衡阳市| 乡宁县| 米易县| 乐昌市| 高州市| 成安县| 潞西市| 江陵县| 阳江市| 苏尼特左旗| 黎平县| 天全县| 敖汉旗| 沙湾县| 永康市| 河北省| 金秀| 滁州市|