首页 开发技术 其它     /    spark平台scala语言自己实现的kmeans算法,相比于MLlib的Kmeans更简单,更容易看懂,代码量少注释多

spark平台scala语言自己实现的kmeans算法,相比于MLlib的Kmeans更简单,更容易看懂,代码量少注释多

上传者: vaq37942 | 上传时间:2025/12/14 1:22:32 | 文件大小:81KB | 文件类型:rar
spark平台scala语言自己实现的kmeans算法,相比于MLlib的Kmeans更简单,更容易看懂,代码量少注释多
不到一百行的代码教你在spark平台中使用scala实现kmeans算法。
简单易懂,大量注释。
适合初学者参考理解。
本程序在intelliJIDEA2016.1.1中编程,运行在spark1.6.1scala2.10.4本地模式下运行成功。
数据集:(其实‘,’前面的1.00.0没用,不过不能删除,除非你修改代码中的数据解析代码)1.0,0.01.10.10.0,2.01.0-1.00.0,2.01.31.01.0,0.01.2-0.51.0,1.01.40.81.0,0.31.51.10.0,2.11.0-1.00.0,1.02.31.31.0,0.20.2-1.51.0,1.01.42.8 本软件ID:9526355

文件下载

资源详情

[{"title":"(77个子文件81KB)spark平台scala语言自己实现的kmeans算法,相比于MLlib的Kmeans更简单,更容易看懂,代码量少注释多","children":[{"title":"scala_2.11.8_for_spark","children":[{"title":"src","children":[{"title":"com","children":[{"title":"spark","children":[{"title":"myKmeans.scala <span style='color:#111;'>4.33KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"misc.xml <span style='color:#111;'>783B</span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'>76B</span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'>284B</span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'>686B</span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'>64.35KB</span>","children":null,"spread":false},{"title":"libraries","children":[{"title":"datanucleus_api_jdo_3_2_6.xml <span style='color:#111;'>5.30KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"scala_2.11.8_for_spark.iml <span style='color:#111;'>584B</span>","children":null,"spread":false},{"title":"out","children":[{"title":"production","children":[{"title":"scala_2.11.8_for_spark","children":[{"title":"ML$$anonfun$10.class <span style='color:#111;'>1.66KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$22.class <span style='color:#111;'>1.63KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$my_kmeans$1$$anonfun$1.class <span style='color:#111;'>995B</span>","children":null,"spread":false},{"title":"ML$$anonfun$13$$anonfun$apply$3.class <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$2.class <span style='color:#111;'>919B</span>","children":null,"spread":false},{"title":"ML$$anonfun$13.class <span style='color:#111;'>2.03KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$3.class <span style='color:#111;'>884B</span>","children":null,"spread":false},{"title":"ML$$anonfun$my_kmeans$1.class <span style='color:#111;'>2.64KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$18.class <span style='color:#111;'>2.21KB</span>","children":null,"spread":false},{"title":"ML$.class <span style='color:#111;'>12.43KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$vectorAdd$2.class <span style='color:#111;'>911B</span>","children":null,"spread":false},{"title":"ML$$anonfun$20.class <span style='color:#111;'>1.15KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$my_kmeans$1$$anonfun$apply$mcVI$sp$1.class <span style='color:#111;'>1.52KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$11.class <span style='color:#111;'>1.50KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$6.class <span style='color:#111;'>1.15KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$my_kmeans$3.class <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$5.class <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"com","children":[{"title":"spark","children":[{"title":"myKmeans$$anonfun$my_kmeans$3.class <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$3.class <span style='color:#111;'>938B</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$4.class <span style='color:#111;'>2.11KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$4.class <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$2.class <span style='color:#111;'>979B</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$my_kmeans$4.class <span style='color:#111;'>1.08KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$7$$anonfun$8.class <span style='color:#111;'>1.75KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$6.class <span style='color:#111;'>1.17KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$4$$anonfun$apply$1.class <span style='color:#111;'>1.41KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$my_kmeans$1$$anonfun$apply$mcVI$sp$1.class <span style='color:#111;'>1.61KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$my_kmeans$2.class <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$vectorDvide$1.class <span style='color:#111;'>1.25KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$my_kmeans$1.class <span style='color:#111;'>2.75KB</span>","children":null,"spread":false},{"title":"myKmeans.class <span style='color:#111;'>2.29KB</span>","children":null,"spread":false},{"title":"myKmeans$.class <span style='color:#111;'>6.84KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$closeestPoint$1.class <span style='color:#111;'>2.19KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$7.class <span style='color:#111;'>2.12KB</span>","children":null,"spread":false},{"title":"HelloSpark$.class <span style='color:#111;'>5.16KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$vectorAdd$1.class <span style='color:#111;'>1.28KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$v_add$1$2.class <span style='color:#111;'>967B</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$vectorDvide$1$1.class <span style='color:#111;'>1.27KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$v_add$1$1.class <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$2.class <span style='color:#111;'>973B</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$vectorAdd$2.class <span style='color:#111;'>965B</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$5.class <span style='color:#111;'>1.54KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$1.class <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"myKmeans$$anonfun$my_kmeans$1$$anonfun$1.class <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"HelloSpark.class <span style='color:#111;'>1.01KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$5.class <span style='color:#111;'>1.22KB</span>","children":null,"spread":false},{"title":"HelloSpark$$anonfun$3.class <span style='color:#111;'>948B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"ML$$anonfun$12.class <span style='color:#111;'>2.03KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$my_kmeans$2.class <span style='color:#111;'>1.24KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$closeestPoint$1.class <span style='color:#111;'>2.14KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$14.class <span style='color:#111;'>1.47KB</span>","children":null,"spread":false},{"title":"ML.class <span style='color:#111;'>3.05KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$16.class <span style='color:#111;'>2.03KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$23.class <span style='color:#111;'>1.22KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$12$$anonfun$apply$2.class <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$vectorDvide$1.class <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$8.class <span style='color:#111;'>1.39KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$16$$anonfun$17.class <span style='color:#111;'>1.64KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$21.class <span style='color:#111;'>2.20KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$15.class <span style='color:#111;'>1.11KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$18$$anonfun$apply$4.class <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$vectorAdd$1.class <span style='color:#111;'>1.23KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$4$$anonfun$apply$1.class <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$my_kmeans$4.class <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$21$$anonfun$apply$5.class <span style='color:#111;'>1.34KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$4.class <span style='color:#111;'>2.20KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$7.class <span style='color:#111;'>1.94KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$19.class <span style='color:#111;'>1.61KB</span>","children":null,"spread":false},{"title":"ML$$anonfun$9.class <span style='color:#111;'>1.66KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • duzhenxi7:
    OK的吧!!2018-08-19
  • duzhenxi7:
    OK的吧!!2018-08-19
  • zyh_159:
    还不错,赞赞2017-11-16
  • ZYH_159:
    还不错,赞赞2017-11-16
  • qiaotinger:
    yibanbana也就那样2016-12-14
  • 老乔家大哥:
    yibanbana也就那样2016-12-14
  • yqiang777:
    还不错,看的挺明白的2016-11-28
  • yqiang777:
    还不错,看的挺明白的2016-11-28

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明