Skip to content
Snippets Groups Projects
  • Yanbo Liang's avatar
    99693fef
    [SPARK-11723][ML][DOC] Use LibSVM data source rather than MLUtils.loadLibSVMFile to load DataFrame · 99693fef
    Yanbo Liang authored
    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.
    99693fef
    History
    [SPARK-11723][ML][DOC] Use LibSVM data source rather than MLUtils.loadLibSVMFile to load DataFrame
    Yanbo Liang authored
    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.