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

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._
主站蜘蛛池模板: 赤壁市| 阜新| 纳雍县| 津市市| 蓬安县| 扶风县| 昆明市| 天峨县| 台前县| 焦作市| 理塘县| 湖南省| 靖安县| 永修县| 林西县| 北票市| 海原县| 曲靖市| 海原县| 马鞍山市| 嘉义县| 毕节市| 汝城县| 涿州市| 南江县| 吕梁市| 玉山县| 华池县| 林甸县| 施秉县| 开阳县| 交口县| 乌兰浩特市| 襄城县| 拉孜县| 涿州市| 阳泉市| 项城市| 林芝县| 榕江县| 丘北县|