Class SparkPSWorker
- java.lang.Object
- 
- org.apache.sysds.runtime.controlprogram.paramserv.PSWorker
- 
- org.apache.sysds.runtime.controlprogram.paramserv.LocalPSWorker
- 
- org.apache.sysds.runtime.controlprogram.paramserv.SparkPSWorker
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Callable<Void>,- org.apache.spark.api.java.function.VoidFunction<scala.Tuple2<Integer,scala.Tuple2<MatrixBlock,MatrixBlock>>>
 
 public class SparkPSWorker extends LocalPSWorker implements org.apache.spark.api.java.function.VoidFunction<scala.Tuple2<Integer,scala.Tuple2<MatrixBlock,MatrixBlock>>> - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SparkPSWorker(String updFunc, String aggFunc, Statement.PSFrequency freq, int epochs, long batchSize, String program, boolean isLocal, HashMap<String,byte[]> clsMap, org.apache.spark.SparkConf conf, int port, org.apache.spark.util.LongAccumulator aSetup, org.apache.spark.util.LongAccumulator aWorker, org.apache.spark.util.LongAccumulator aUpdate, org.apache.spark.util.LongAccumulator aIndex, org.apache.spark.util.LongAccumulator aGrad, org.apache.spark.util.LongAccumulator aRPC, org.apache.spark.util.LongAccumulator aBatches, org.apache.spark.util.LongAccumulator aEpochs, int nbatches, boolean modelAvg)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcall(scala.Tuple2<Integer,scala.Tuple2<MatrixBlock,MatrixBlock>> input)StringgetWorkerName()- 
Methods inherited from class org.apache.sysds.runtime.controlprogram.paramserv.LocalPSWorkercall
 - 
Methods inherited from class org.apache.sysds.runtime.controlprogram.paramserv.PSWorkergetFeatures, getLabels, setFeatures, setLabels
 
- 
 
- 
- 
- 
Constructor Detail- 
SparkPSWorkerpublic SparkPSWorker(String updFunc, String aggFunc, Statement.PSFrequency freq, int epochs, long batchSize, String program, boolean isLocal, HashMap<String,byte[]> clsMap, org.apache.spark.SparkConf conf, int port, org.apache.spark.util.LongAccumulator aSetup, org.apache.spark.util.LongAccumulator aWorker, org.apache.spark.util.LongAccumulator aUpdate, org.apache.spark.util.LongAccumulator aIndex, org.apache.spark.util.LongAccumulator aGrad, org.apache.spark.util.LongAccumulator aRPC, org.apache.spark.util.LongAccumulator aBatches, org.apache.spark.util.LongAccumulator aEpochs, int nbatches, boolean modelAvg) 
 
- 
 - 
Method Detail- 
getWorkerNamepublic String getWorkerName() - Overrides:
- getWorkerNamein class- LocalPSWorker
 
 - 
callpublic void call(scala.Tuple2<Integer,scala.Tuple2<MatrixBlock,MatrixBlock>> input) throws Exception - Specified by:
- callin interface- org.apache.spark.api.java.function.VoidFunction<scala.Tuple2<Integer,scala.Tuple2<MatrixBlock,MatrixBlock>>>
- Throws:
- Exception
 
 
- 
 
-