org.datavec.api.transform.ui.HtmlAnalysis Java Examples

The following examples show how to use org.datavec.api.transform.ui.HtmlAnalysis. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SparkUtils.java    From DataVec with Apache License 2.0 5 votes vote down vote up
/**
 * Write a DataAnalysis to HDFS (or locally) as a HTML file
 *
 * @param outputPath      Output path
 * @param dataAnalysis    Analysis to generate HTML file for
 * @param sc              Spark context
 */
public static void writeAnalysisHTMLToFile(String outputPath, DataAnalysis dataAnalysis, JavaSparkContext sc) {
    try {
        String analysisAsHtml = HtmlAnalysis.createHtmlAnalysisString(dataAnalysis);
        writeStringToFile(outputPath, analysisAsHtml, sc);
    } catch (Exception e) {
        throw new RuntimeException("Error generating or writing HTML analysis file (normalized data)", e);
    }
}
 
Example #2
Source File: SparkUtils.java    From deeplearning4j with Apache License 2.0 5 votes vote down vote up
/**
 * Write a DataAnalysis to HDFS (or locally) as a HTML file
 *
 * @param outputPath      Output path
 * @param dataAnalysis    Analysis to generate HTML file for
 * @param sc              Spark context
 */
public static void writeAnalysisHTMLToFile(String outputPath, DataAnalysis dataAnalysis, JavaSparkContext sc) {
    try {
        String analysisAsHtml = HtmlAnalysis.createHtmlAnalysisString(dataAnalysis);
        writeStringToFile(outputPath, analysisAsHtml, sc);
    } catch (Exception e) {
        throw new RuntimeException("Error generating or writing HTML analysis file (normalized data)", e);
    }
}