public abstract class BaseSparkTest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected org.nd4j.linalg.dataset.DataSet |
data |
protected org.nd4j.linalg.api.ndarray.INDArray |
input |
protected org.nd4j.linalg.api.ndarray.INDArray |
labels |
protected int |
nIn |
protected int |
nOut |
protected int |
nRows |
protected org.nd4j.linalg.api.ndarray.INDArray |
rowSums |
protected org.apache.spark.api.java.JavaSparkContext |
sc |
protected org.apache.spark.api.java.JavaRDD<org.nd4j.linalg.dataset.DataSet> |
sparkData |
Constructor and Description |
---|
BaseSparkTest() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
protected MultiLayerConfiguration |
getBasicConf() |
protected SparkDl4jMultiLayer |
getBasicNetwork() |
protected org.apache.spark.api.java.JavaRDD<org.nd4j.linalg.dataset.DataSet> |
getBasicSparkDataSet(int nRows,
org.nd4j.linalg.api.ndarray.INDArray input,
org.nd4j.linalg.api.ndarray.INDArray labels) |
org.apache.spark.api.java.JavaSparkContext |
getContext() |
protected int |
numExecutors() |
protected transient org.apache.spark.api.java.JavaSparkContext sc
protected transient org.nd4j.linalg.api.ndarray.INDArray labels
protected transient org.nd4j.linalg.api.ndarray.INDArray input
protected transient org.nd4j.linalg.api.ndarray.INDArray rowSums
protected transient int nRows
protected transient int nIn
protected transient int nOut
protected transient org.nd4j.linalg.dataset.DataSet data
protected transient org.apache.spark.api.java.JavaRDD<org.nd4j.linalg.dataset.DataSet> sparkData
public void before()
public void after()
public org.apache.spark.api.java.JavaSparkContext getContext()
protected org.apache.spark.api.java.JavaRDD<org.nd4j.linalg.dataset.DataSet> getBasicSparkDataSet(int nRows, org.nd4j.linalg.api.ndarray.INDArray input, org.nd4j.linalg.api.ndarray.INDArray labels)
protected SparkDl4jMultiLayer getBasicNetwork()
protected int numExecutors()
protected MultiLayerConfiguration getBasicConf()