-
- Downloads
[SPARK-11723][ML][DOC] Use LibSVM data source rather than MLUtils.loadLibSVMFile to load DataFrame
Use LibSVM data source rather than MLUtils.loadLibSVMFile to load DataFrame, include: * Use libSVM data source for all example codes under examples/ml, and remove unused import. * Use libSVM data source for user guides under ml-*** which were omitted by #8697. * Fix bug: We should use ```sqlContext.read().format("libsvm").load(path)``` at Java side, but the API doc and user guides misuse as ```sqlContext.read.format("libsvm").load(path)```. * Code cleanup. mengxr Author: Yanbo Liang <ybliang8@gmail.com> Closes #9690 from yanboliang/spark-11723.
Showing
- docs/ml-ensembles.md 5 additions, 5 deletionsdocs/ml-ensembles.md
- docs/ml-features.md 4 additions, 4 deletionsdocs/ml-features.md
- docs/ml-guide.md 2 additions, 8 deletionsdocs/ml-guide.md
- docs/ml-linear-methods.md 2 additions, 2 deletionsdocs/ml-linear-methods.md
- examples/src/main/java/org/apache/spark/examples/ml/JavaDecisionTreeClassificationExample.java 2 additions, 6 deletions...rk/examples/ml/JavaDecisionTreeClassificationExample.java
- examples/src/main/java/org/apache/spark/examples/ml/JavaDecisionTreeRegressionExample.java 3 additions, 6 deletions.../spark/examples/ml/JavaDecisionTreeRegressionExample.java
- examples/src/main/java/org/apache/spark/examples/ml/JavaMultilayerPerceptronClassifierExample.java 1 addition, 5 deletions...xamples/ml/JavaMultilayerPerceptronClassifierExample.java
- examples/src/main/java/org/apache/spark/examples/ml/JavaOneVsRestExample.java 10 additions, 13 deletions...va/org/apache/spark/examples/ml/JavaOneVsRestExample.java
- examples/src/main/java/org/apache/spark/examples/ml/JavaTrainValidationSplitExample.java 1 addition, 5 deletions...he/spark/examples/ml/JavaTrainValidationSplitExample.java
- examples/src/main/python/ml/decision_tree_classification_example.py 2 additions, 3 deletions...rc/main/python/ml/decision_tree_classification_example.py
- examples/src/main/python/ml/decision_tree_regression_example.py 2 additions, 3 deletions...es/src/main/python/ml/decision_tree_regression_example.py
- examples/src/main/python/ml/gradient_boosted_trees.py 2 additions, 3 deletionsexamples/src/main/python/ml/gradient_boosted_trees.py
- examples/src/main/python/ml/logistic_regression.py 2 additions, 3 deletionsexamples/src/main/python/ml/logistic_regression.py
- examples/src/main/python/ml/multilayer_perceptron_classification.py 2 additions, 3 deletions...rc/main/python/ml/multilayer_perceptron_classification.py
- examples/src/main/python/ml/random_forest_example.py 2 additions, 2 deletionsexamples/src/main/python/ml/random_forest_example.py
- examples/src/main/scala/org/apache/spark/examples/ml/DecisionTreeClassificationExample.scala 2 additions, 4 deletions...spark/examples/ml/DecisionTreeClassificationExample.scala
- examples/src/main/scala/org/apache/spark/examples/ml/DecisionTreeExample.scala 14 additions, 28 deletions...la/org/apache/spark/examples/ml/DecisionTreeExample.scala
- examples/src/main/scala/org/apache/spark/examples/ml/DecisionTreeRegressionExample.scala 3 additions, 4 deletions...che/spark/examples/ml/DecisionTreeRegressionExample.scala
- examples/src/main/scala/org/apache/spark/examples/ml/GBTExample.scala 1 addition, 1 deletion.../main/scala/org/apache/spark/examples/ml/GBTExample.scala
- examples/src/main/scala/org/apache/spark/examples/ml/LinearRegressionExample.scala 1 addition, 1 deletion...rg/apache/spark/examples/ml/LinearRegressionExample.scala
Loading
Please register or sign in to comment