楼主: ReneeBK
3381 26

【GitHub】Spark Scala Learning Note [推广有奖]

  • 1关注
  • 62粉丝

VIP

已卖:4901份资源

学术权威

14%

还不是VIP/贵宾

-

TA的文库  其他...

R资源总汇

Panel Data Analysis

Experimental Design

威望
1
论坛币
49675 个
通用积分
56.1287
学术水平
370 点
热心指数
273 点
信用等级
335 点
经验
57805 点
帖子
4005
精华
21
在线时间
582 小时
注册时间
2005-5-8
最后登录
2023-11-26

楼主
ReneeBK 发表于 2017-2-21 07:35:26 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
  1. Introduction
  2. 1. Develope Envirinment Setup
  3. 2. Scala Basic
  4. 2.1. For And Yield
  5. 2.2. Functions
  6. 2.3. Class and Case Class
  7. 2.3.1. Basic Class and Constructor
  8. 2.3.2. Abstract Class
  9. 2.3.3. Case Class
  10. 2.4. Object, Compaion Object
  11. 2.5. Traits
  12. 2.6. Pattern Matching
  13. 2.6.1. Matching on Value
  14. 2.6.2. Matching on Type
  15. 2.6.3. Matching on Class Members
  16. 2.7. Exception
  17. 2.8. Data Structure
  18. 2.8.1. Option
  19. 2.8.2. Map
  20. 2.8.3. Tuple
  21. 2.9. Functional Combinator
  22. 2.9.1. map
  23. 3. Design Pattern
  24. 3.1. Factory
  25. 3.2. Singleton
  26. 3.3. Adaptor
  27. 3.4. Decorate
  28. 4. Loading Data from Spark Client to Cluster
  29. 4.1. Data From S3
  30. 4.2. Reading CSV
  31. 4.3. Using Parquet
  32. 4.4. Loading More Than 22 Features into a Class
  33. 4.5. Caching
  34. 5. Algorithm
  35. 5.1. Linear Regression
  36. 5.1.1. Creating LabeledPoint
  37. 5.1.2. Preparing the Training and Test Data
  38. 5.1.3. Scaling the Features
  39. 5.1.4. Training the Model
  40. 5.1.5. Predicting Against Test Data
  41. 6. Appendix
  42. 6.1. Language Questions
  43. 6.1.1. Differences between val, var and def
  44. 6.1.2. Differences between trait and abstract class
  45. 6.1.3. Differences between an ```object``` and a ```class```.
  46. 6.1.4. Companion Object
  47. 6.1.5. Difference between the following terms and types in Scala: Nil, Null, None, Nothing
  48. 6.1.6. Difference between Call by Name and Call by Value
  49. 6.1.7. Option monad
  50. 6.2. Functional Programming Questions
  51. 6.3. Reactive Programming Questions
  52. 6.4. Coding Questions
  53. Published with GitBook
复制代码

本帖隐藏的内容





二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Learning earning GitHub SCALA Spark Object Design

本帖被以下文库推荐

沙发
ReneeBK 发表于 2017-2-21 07:39:09
  1. For And Yield
  2. object ForAndYield extends App{
  3.   val vec1 = for(i <- 1 to 5) yield i
  4.   println("Vector 1: "+vec1)

  5.   val vec2 = for(i <- 1 to 5) yield i*i
  6.   println("Vector 2: "+vec2)

  7.   val a = Vector(1,2,3,4,5)
  8.   val vec3 = for(e <- a) yield e
  9.   println("Vector 3: "+vec3)

  10.   val vec4 = for(e <- a; if e>2) yield e
  11.   println("Vector 4: "+vec4)

  12. }
复制代码

藤椅
ReneeBK 发表于 2017-2-21 07:44:32
  1. Functions
  2. def addOne(num: Int ): Int = num + 1


  3. Usage
  4. val add = addOne(2)
  5. println(add)


  6. Output
  7. 3


  8. Multiple expressions
  9. def timesTwo(i: Int): Int = {
  10.   println("hello world")
  11.   i * 2
  12. }


  13. Partial Application
  14. def add(m: Integer, n: Integer) = m + n

  15. val add2 = add(2, _:Int)


  16. Usage
  17. add2(3)


  18. Output
  19. 5 //2+3


  20. Variable Length Argument
  21. def captializeAll(args: String*){
  22.     args.map{ arg =>
  23.         arg.capitalize
  24.     }
  25. }


  26. Usage
  27. captializeAll("robin", "Jiaming", "lin")


  28. Output
  29. ArrayBuffer(Robin, Jiaming, Lin)
复制代码

板凳
smartlife 在职认证  发表于 2017-2-21 08:10:21

报纸
Nicolle 学生认证  发表于 2017-2-21 08:18:30
提示: 作者被禁止或删除 内容自动屏蔽

地板
lhf8059 发表于 2017-2-21 08:18:35
看看!

7
Nicolle 学生认证  发表于 2017-2-21 08:20:46
提示: 作者被禁止或删除 内容自动屏蔽

8
Nicolle 学生认证  发表于 2017-2-21 08:21:38
提示: 作者被禁止或删除 内容自动屏蔽

9
sqy 发表于 2017-2-21 08:27:17
ding!!!!!!!!!!!

10
Nicolle 学生认证  发表于 2017-2-21 08:35:45
提示: 作者被禁止或删除 内容自动屏蔽

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
扫码
拉您进交流群
GMT+8, 2026-1-29 21:47