-
- Downloads
Merge pull request #380 from mateiz/py-bayes
Add Naive Bayes to Python MLlib, and some API fixes - Added a Python wrapper for Naive Bayes - Updated the Scala Naive Bayes to match the style of our other algorithms better and in particular make it easier to call from Java (added builder pattern, removed default value in train method) - Updated Python MLlib functions to not require a SparkContext; we can get that from the RDD the user gives - Added a toString method in LabeledPoint - Made the Python MLlib tests run as part of run-tests as well (before they could only be run individually through each file)
No related branches found
No related tags found
Showing
- docs/_config.yml 1 addition, 1 deletiondocs/_config.yml
- docs/mllib-guide.md 14 additions, 5 deletionsdocs/mllib-guide.md
- docs/python-programming-guide.md 7 additions, 1 deletiondocs/python-programming-guide.md
- mllib/data/sample_naive_bayes_data.txt 6 additions, 0 deletionsmllib/data/sample_naive_bayes_data.txt
- mllib/src/main/scala/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala 17 additions, 0 deletions...la/org/apache/spark/mllib/api/python/PythonMLLibAPI.scala
- mllib/src/main/scala/org/apache/spark/mllib/classification/LogisticRegression.scala 3 additions, 1 deletion...pache/spark/mllib/classification/LogisticRegression.scala
- mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala 56 additions, 9 deletions...la/org/apache/spark/mllib/classification/NaiveBayes.scala
- mllib/src/main/scala/org/apache/spark/mllib/classification/SVM.scala 2 additions, 0 deletions...ain/scala/org/apache/spark/mllib/classification/SVM.scala
- mllib/src/main/scala/org/apache/spark/mllib/regression/LabeledPoint.scala 5 additions, 1 deletion...cala/org/apache/spark/mllib/regression/LabeledPoint.scala
- mllib/src/main/scala/org/apache/spark/mllib/regression/Lasso.scala 3 additions, 1 deletion.../main/scala/org/apache/spark/mllib/regression/Lasso.scala
- mllib/src/main/scala/org/apache/spark/mllib/regression/LinearRegression.scala 2 additions, 0 deletions.../org/apache/spark/mllib/regression/LinearRegression.scala
- mllib/src/main/scala/org/apache/spark/mllib/regression/RidgeRegression.scala 3 additions, 1 deletion...a/org/apache/spark/mllib/regression/RidgeRegression.scala
- mllib/src/test/java/org/apache/spark/mllib/classification/JavaNaiveBayesSuite.java 72 additions, 0 deletions...pache/spark/mllib/classification/JavaNaiveBayesSuite.java
- python/pyspark/mllib/_common.py 1 addition, 1 deletionpython/pyspark/mllib/_common.py
- python/pyspark/mllib/classification.py 65 additions, 12 deletionspython/pyspark/mllib/classification.py
- python/pyspark/mllib/clustering.py 6 additions, 5 deletionspython/pyspark/mllib/clustering.py
- python/pyspark/mllib/recommendation.py 6 additions, 4 deletionspython/pyspark/mllib/recommendation.py
- python/pyspark/mllib/regression.py 19 additions, 16 deletionspython/pyspark/mllib/regression.py
- python/pyspark/worker.py 4 additions, 0 deletionspython/pyspark/worker.py
- python/run-tests 5 additions, 0 deletionspython/run-tests
Loading
Please register or sign in to comment