- 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._
推薦閱讀
- 流量的秘密:Google Analytics網站分析與優化技巧(第2版)
- Web前端開發技術:HTML、CSS、JavaScript(第3版)
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Kotlin從基礎到實戰
- Mastering React
- C#程序設計基礎入門教程
- MySQL數據庫應用實戰教程(慕課版)
- Access數據庫應用教程(2010版)
- Python機器學習開發實戰
- SFML Game Development
- ASP.NET Core and Angular 2
- Visual Basic語言程序設計上機指導與練習(第3版)
- Pandas 1.x Cookbook
- Mastering ASP.NET Web API
- Docker on Windows