@Deprecated public class MLOutput extends Object
Constructor and Description |
---|
MLOutput(Map<String,org.apache.spark.api.java.JavaPairRDD<?,?>> outputs,
Map<String,MatrixCharacteristics> outMetadata)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
org.apache.spark.api.java.JavaPairRDD<MatrixIndexes,MatrixBlock> |
getBinaryBlockedRDD(String varName)
Deprecated.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDataFrameRDD(String varName,
org.apache.spark.api.java.JavaSparkContext jsc)
Deprecated.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDF(org.apache.spark.sql.SparkSession sparkSession,
String varName)
Deprecated.
Note, the output DataFrame has an additional column ID.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDF(org.apache.spark.sql.SparkSession sparkSession,
String varName,
boolean outputVector)
Deprecated.
Obtain the DataFrame
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDF(org.apache.spark.sql.SparkSession sparkSession,
String varName,
MatrixCharacteristics mc)
Deprecated.
This methods improves the performance of MLPipeline wrappers.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDF(org.apache.spark.sql.SQLContext sqlContext,
String varName)
Deprecated.
Note, the output DataFrame has an additional column ID.
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDF(org.apache.spark.sql.SQLContext sqlContext,
String varName,
boolean outputVector)
Deprecated.
Obtain the DataFrame
|
org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> |
getDF(org.apache.spark.sql.SQLContext sqlContext,
String varName,
MatrixCharacteristics mc)
Deprecated.
This methods improves the performance of MLPipeline wrappers.
|
org.apache.spark.api.java.JavaPairRDD<Long,FrameBlock> |
getFrameBinaryBlockedRDD(String varName)
Deprecated.
|
MatrixBlock |
getMatrixBlock(String varName)
Deprecated.
|
MatrixCharacteristics |
getMatrixCharacteristics(String varName)
Deprecated.
|
MLMatrix |
getMLMatrix(MLContext ml,
org.apache.spark.sql.SparkSession sparkSession,
String varName)
Deprecated.
|
MLMatrix |
getMLMatrix(MLContext ml,
org.apache.spark.sql.SQLContext sqlContext,
String varName)
Deprecated.
|
org.apache.spark.api.java.JavaRDD<String> |
getStringFrameRDD(String varName,
String format,
CSVFileFormatProperties fprop)
Deprecated.
|
org.apache.spark.api.java.JavaRDD<String> |
getStringRDD(String varName,
String format)
Deprecated.
|
public MLOutput(Map<String,org.apache.spark.api.java.JavaPairRDD<?,?>> outputs, Map<String,MatrixCharacteristics> outMetadata)
public MatrixBlock getMatrixBlock(String varName) throws DMLRuntimeException
DMLRuntimeException
public org.apache.spark.api.java.JavaPairRDD<MatrixIndexes,MatrixBlock> getBinaryBlockedRDD(String varName) throws DMLRuntimeException
DMLRuntimeException
public org.apache.spark.api.java.JavaPairRDD<Long,FrameBlock> getFrameBinaryBlockedRDD(String varName) throws DMLRuntimeException
DMLRuntimeException
public MatrixCharacteristics getMatrixCharacteristics(String varName) throws DMLRuntimeException
DMLRuntimeException
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDF(org.apache.spark.sql.SparkSession sparkSession, String varName) throws DMLRuntimeException
sparkSession
- the Spark SessionvarName
- the variable nameDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDF(org.apache.spark.sql.SQLContext sqlContext, String varName) throws DMLRuntimeException
sqlContext
- the SQL ContextvarName
- the variable nameDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDF(org.apache.spark.sql.SparkSession sparkSession, String varName, boolean outputVector) throws DMLRuntimeException
sparkSession
- the Spark SessionvarName
- the variable nameoutputVector
- if true, returns DataFrame with two column: ID and org.apache.spark.ml.linalg.VectorDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDF(org.apache.spark.sql.SQLContext sqlContext, String varName, boolean outputVector) throws DMLRuntimeException
sqlContext
- the SQL ContextvarName
- the variable nameoutputVector
- if true, returns DataFrame with two column: ID and org.apache.spark.ml.linalg.VectorDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDF(org.apache.spark.sql.SparkSession sparkSession, String varName, MatrixCharacteristics mc) throws DMLRuntimeException
sparkSession
- the Spark SessionvarName
- the variable namemc
- the matrix characteristicsDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDF(org.apache.spark.sql.SQLContext sqlContext, String varName, MatrixCharacteristics mc) throws DMLRuntimeException
sqlContext
- the SQL ContextvarName
- the variable namemc
- the matrix characteristicsDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.spark.api.java.JavaRDD<String> getStringRDD(String varName, String format) throws DMLRuntimeException
DMLRuntimeException
public org.apache.spark.api.java.JavaRDD<String> getStringFrameRDD(String varName, String format, CSVFileFormatProperties fprop) throws DMLRuntimeException
DMLRuntimeException
public org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> getDataFrameRDD(String varName, org.apache.spark.api.java.JavaSparkContext jsc) throws DMLRuntimeException
DMLRuntimeException
public MLMatrix getMLMatrix(MLContext ml, org.apache.spark.sql.SparkSession sparkSession, String varName) throws DMLRuntimeException
DMLRuntimeException
public MLMatrix getMLMatrix(MLContext ml, org.apache.spark.sql.SQLContext sqlContext, String varName) throws DMLRuntimeException
DMLRuntimeException
Copyright © 2017 The Apache Software Foundation. All rights reserved.