- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 182字
- 2021-07-09 21:07:46
Setting up the Scala environment in Intellij
It is best to use an IDE like IntelliJ to edit Scala code, which provides faster development tools and coding assistance. Code completion and inspection makes coding and debugging faster and simpler, ensuring you focus on the end goal of learning math for machine learning.
IntelliJ 2016.3 brings Akka, Scala.meta, Memory view, Scala.js, and Migrators to the IntelliJ IDE as part of the Scala plugin. Now, let's set up the Scala environment in Intellij as follows:
- Go to Under Preferences | Plugins, and verify if the Scala plugin is installed. SBT, which is a build tool for Scala, is configured by default as shown in the following screenshot:

- Select File | New | Project from Existing resources | $GIT_REPO/Chapter_02/breeze or $GIT_REPO/Chapter_02/spark. Here, $GIT_REPO is the repository path where you have cloned the source code of the book.
- Import project by selecting the SBT option:

- Keep the default options of SBT, and click on Finish.
- SBT will take a while to import references from build.sbt.

- Finally, right click on the source file and select Run 'Vector'.

推薦閱讀
- 控制與決策系統仿真
- 數據中心建設與管理指南
- Dreamweaver CS3網頁設計50例
- 來吧!帶你玩轉Excel VBA
- Apache Hive Essentials
- 樂高創意機器人教程(中級 下冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- PyTorch Deep Learning Hands-On
- Windows內核原理與實現
- 項目管理成功利器Project 2007全程解析
- 單片機C語言應用100例
- Excel 2007常見技法與行業應用實例精講
- SAP Business Intelligence Quick Start Guide
- Flink原理與實踐
- 典型Hadoop云計算
- Raspberry Pi Projects for Kids