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

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._
主站蜘蛛池模板: 台中县| 河西区| 合肥市| 加查县| 祁门县| 鄂伦春自治旗| 西安市| 什邡市| 商水县| 古丈县| 宜城市| 南靖县| 高清| 合山市| 富阳市| 海伦市| 星座| 兴业县| 新疆| 资讯 | 五大连池市| 余庆县| 梅河口市| 大田县| 望城县| 尼勒克县| 鄂托克旗| 余江县| 塘沽区| 新乡市| 宣武区| 淮南市| 兰坪| 蒲城县| 怀仁县| 中卫市| 卢氏县| 宜君县| 安塞县| 定西市| 黔西|