Package org.jpmml.sparkml.testing
Class SparkMLEncoderBatchTest
- java.lang.Object
-
- org.jpmml.evaluator.testing.BatchTest
-
- org.jpmml.evaluator.testing.ArchiveBatchTest
-
- org.jpmml.converter.testing.ModelEncoderBatchTest
-
- org.jpmml.sparkml.testing.SparkMLEncoderBatchTest
-
public class SparkMLEncoderBatchTest extends org.jpmml.converter.testing.ModelEncoderBatchTest
-
-
Constructor Summary
Constructors Constructor Description SparkMLEncoderBatchTest()SparkMLEncoderBatchTest(com.google.common.base.Equivalence<Object> equivalence)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SparkMLEncoderBatchcreateBatch(String algorithm, String dataset, Predicate<org.jpmml.evaluator.ResultField> columnFilter, com.google.common.base.Equivalence<Object> equivalence)static voidcreateSparkSession()static voiddestroySparkSession()static Predicate<org.jpmml.evaluator.ResultField>excludePredictionFields()static Predicate<org.jpmml.evaluator.ResultField>excludePredictionFields(String predictionCol)org.apache.spark.sql.SparkSessiongetSparkSession()
-
-
-
Constructor Detail
-
SparkMLEncoderBatchTest
public SparkMLEncoderBatchTest()
-
SparkMLEncoderBatchTest
public SparkMLEncoderBatchTest(com.google.common.base.Equivalence<Object> equivalence)
-
-
Method Detail
-
getSparkSession
public org.apache.spark.sql.SparkSession getSparkSession()
- See Also:
createSparkSession(),destroySparkSession()
-
createBatch
public SparkMLEncoderBatch createBatch(String algorithm, String dataset, Predicate<org.jpmml.evaluator.ResultField> columnFilter, com.google.common.base.Equivalence<Object> equivalence)
- Specified by:
createBatchin classorg.jpmml.evaluator.testing.ArchiveBatchTest
-
createSparkSession
public static void createSparkSession()
-
destroySparkSession
public static void destroySparkSession()
-
excludePredictionFields
public static Predicate<org.jpmml.evaluator.ResultField> excludePredictionFields()
-
-