- 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._
推薦閱讀
- Web程序設(shè)計(jì)及應(yīng)用
- scikit-learn Cookbook
- 復(fù)雜軟件設(shè)計(jì)之道:領(lǐng)域驅(qū)動設(shè)計(jì)全面解析與實(shí)戰(zhàn)
- PHP 7底層設(shè)計(jì)與源碼實(shí)現(xiàn)
- C/C++算法從菜鳥到達(dá)人
- 零基礎(chǔ)學(xué)Java(第4版)
- C語言從入門到精通(第4版)
- 精通Python設(shè)計(jì)模式(第2版)
- Mastering Apache Maven 3
- SQL Server與JSP動態(tài)網(wǎng)站開發(fā)
- 第一行代碼 C語言(視頻講解版)
- 動手學(xué)數(shù)據(jù)結(jié)構(gòu)與算法
- C#程序設(shè)計(jì)(項(xiàng)目教學(xué)版)
- JSP程序設(shè)計(jì)實(shí)例教程(第2版)
- Java編程從入門到精通