文件名称:learning-spark-master
介绍说明--下载内容均来自于网络,请自行研究使用
将逻辑回归应用于二元分类的情况。这里以垃圾邮件分类为例,即是否为垃圾邮件两种情况。然后,根据词频把每个文件中的文本转换为特征向量,训练出一个可以把两类消息分开的逻辑回归模型,判断输入测试语句是否为垃圾邮件。(Spark MLlib (Java): Input: spam.txt; normal.txt; text sentence.
Output:1.0(spam), 0.0(normal email))
Output:1.0(spam), 0.0(normal email))
相关搜索: spark
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
learning-spark-master\.gitignore | 242 | 2016-01-29 |
learning-spark-master\.travis.yml | 317 | 2016-01-29 |
learning-spark-master\bin\datagen.cmd | 619 | 2016-01-29 |
learning-spark-master\bin\fakelogs.cmd | 30 | 2016-01-29 |
learning-spark-master\bin\fakelogs.sh | 352 | 2016-01-29 |
learning-spark-master\build-project | 407 | 2016-01-29 |
learning-spark-master\build.sbt | 3020 | 2016-01-29 |
learning-spark-master\DESCRIPTION | 266 | 2016-01-29 |
learning-spark-master\files\callsigns | 69 | 2016-01-29 |
learning-spark-master\files\callsign_tbl | 8194 | 2016-01-29 |
learning-spark-master\files\callsign_tbl_sorted | 8194 | 2016-01-29 |
learning-spark-master\files\call_signs2.txt | 7 | 2016-01-29 |
learning-spark-master\files\cqlsh_setup | 288 | 2016-01-29 |
learning-spark-master\files\fake_logs\log1.log | 958 | 2016-01-29 |
learning-spark-master\files\fake_logs\log2.log | 193 | 2016-01-29 |
learning-spark-master\files\favourite_animals.csv | 42 | 2016-01-29 |
learning-spark-master\files\flumeconf.cfg | 656 | 2016-01-29 |
learning-spark-master\files\ham.txt | 764 | 2016-01-29 |
learning-spark-master\files\happypandas | 34 | 2016-01-29 |
learning-spark-master\files\int_string.csv | 25 | 2016-01-29 |
learning-spark-master\files\pandainfo.json | 146 | 2016-01-29 |
learning-spark-master\files\spam.txt | 501 | 2016-01-29 |
learning-spark-master\files\testweet.json | 1493 | 2016-01-29 |
learning-spark-master\LICENSE.md | 1182 | 2016-01-29 |
learning-spark-master\mini-complete-example\build.sbt | 200 | 2016-01-29 |
learning-spark-master\mini-complete-example\pom.xml | 975 | 2016-01-29 |
learning-spark-master\mini-complete-example\project\plugins.sbt | 0 | 2016-01-29 |
learning-spark-master\mini-complete-example\README.md | 132 | 2016-01-29 |
learning-spark-master\mini-complete-example\sbt\sbt | 2177 | 2016-01-29 |
learning-spark-master\mini-complete-example\src\main\java\com\oreilly\learningsparkexamples\mini\java\BasicMap.java | 932 | 2016-01-29 |
learning-spark-master\mini-complete-example\src\main\java\com\oreilly\learningsparkexamples\mini\java\WordCount.java | 1684 | 2016-01-29 |
learning-spark-master\mini-complete-example\src\main\scala\com\oreilly\learningsparkexamples\mini\scala\BasicMap.scala | 510 | 2016-01-29 |
learning-spark-master\mini-complete-example\src\main\scala\com\oreilly\learningsparkexamples\mini\scala\WordCount.scala | 834 | 2016-01-29 |
learning-spark-master\pom.xml | 4495 | 2016-01-29 |
learning-spark-master\project\plugins.sbt | 408 | 2016-01-29 |
learning-spark-master\README.md | 1622 | 2016-01-29 |
learning-spark-master\run-all-examples | 4563 | 2016-01-29 |
learning-spark-master\sbt\sbt | 2177 | 2016-01-29 |
learning-spark-master\setup-project | 2539 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicAvg.java | 1721 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicAvgMapPartitions.java | 2417 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicAvgWithKryo.java | 2347 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicFlatMap.java | 1209 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicJoinCsv.java | 1860 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicLoadJson.java | 2614 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicLoadSequenceFile.java | 1440 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicLoadWholeCsv.java | 1673 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicMap.java | 927 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicMapPartitions.java | 1914 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicMapThenFilter.java | 1082 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicMapToDouble.java | 1063 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicQueryCassandra.java | 2545 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicSaveSequenceFile.java | 1622 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\BasicSum.java | 901 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\CallLog.java | 258 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\ChapterSixExample.java | 10225 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\HappyPerson.java | 525 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\IntersectByKey.java | 2294 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\KafkaInput.java | 1459 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\KeyValueMapFilter.java | 1818 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\LoadHive.java | 1525 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\LoadJsonWithSparkSQL.java | 1163 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\ApacheAccessLog.java | 3532 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\Flags.java | 2528 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\Functions.java | 4842 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\LogAnalyzerAppMain.java | 5140 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\LogAnalyzerTotal.java | 6242 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\LogAnalyzerWindowed.java | 4447 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\LogStatistics.java | 1685 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\ReadTransferStats.java | 1517 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\logs\Renderer.java | 5047 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\MLlib.java | 3727 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\PerKeyAvg.java | 2411 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\RemoveOutliers.java | 1327 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\SparkSQLTwitter.java | 2394 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\StreamingLogInput.java | 1560 | 2016-01-29 |
learning-spark-master\src\main\java\com\oreilly\learningsparkexamples\java\WordCount.java | 1379 | 2016-01-29 |
learning-spark-master\src\main\protobuf\address_book.proto | 856 | 2016-01-29 |
learning-spark-master\src\main\protobuf\places.proto | 349 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicAvg.scala | 724 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicAvgFromFile.scala | 723 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicAvgFromFiles.scala | 765 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicAvgMapPartitions.scala | 1112 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicAvgWithKryo.scala | 742 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicFilterUnionCombo.scala | 641 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicIntersectByKey.scala | 1020 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicLoadNums.scala | 1324 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicLoadSequenceFile.scala | 638 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicLoadTextFromFTP.scala | 471 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicMap.scala | 510 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicMapNoCache.scala | 583 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicMapPartitions.scala | 1049 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicMapThenFilter.scala | 579 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicParseCsv.scala | 1445 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicParseJson.scala | 1149 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicParseJsonWithJackson.scala | 2537 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicParseWholeFileCsv.scala | 921 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicQueryCassandra.scala | 1184 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicSaveProtoBuf.scala | 1404 | 2016-01-29 |
learning-spark-master\src\main\scala\com\oreilly\learningsparkexamples\scala\BasicSaveSequenceFile.scala | 542 | 2016-01-29 |