Class FederatedPSControlThread
- java.lang.Object
- 
- org.apache.sysds.runtime.controlprogram.paramserv.PSWorker
- 
- org.apache.sysds.runtime.controlprogram.paramserv.FederatedPSControlThread
 
 
- 
- All Implemented Interfaces:
- Serializable,- Callable<Void>
 
 public class FederatedPSControlThread extends PSWorker implements Callable<Void> - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description FederatedPSControlThread(int workerID, String updFunc, Statement.PSFrequency freq, Statement.PSRuntimeBalancing runtimeBalancing, boolean weighting, int epochs, long batchSize, int numBatchesPerGlobalEpoch, ExecutionContext ec, ParamServer ps, int nbatches, boolean modelAvg, boolean use_homomorphic_encryption)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Voidcall()Entry point of the functionalityPlaintextMatrix[]getPartialDecryption(CiphertextMatrix[] encrypted_sum)PublicKeygetPartialPublicKey()StringgetWorkerName()voidsetPublicKey(PublicKey public_key)voidsetup(double weightingFactor)Sets up the federated worker and control threadvoidteardown()cleans up the execution context of the federated worker- 
Methods inherited from class org.apache.sysds.runtime.controlprogram.paramserv.PSWorkergetFeatures, getLabels, setFeatures, setLabels
 
- 
 
- 
- 
- 
Constructor Detail- 
FederatedPSControlThreadpublic FederatedPSControlThread(int workerID, String updFunc, Statement.PSFrequency freq, Statement.PSRuntimeBalancing runtimeBalancing, boolean weighting, int epochs, long batchSize, int numBatchesPerGlobalEpoch, ExecutionContext ec, ParamServer ps, int nbatches, boolean modelAvg, boolean use_homomorphic_encryption)
 
- 
 - 
Method Detail- 
setuppublic void setup(double weightingFactor) Sets up the federated worker and control thread- Parameters:
- weightingFactor- Gradients from this worker will be multiplied by this factor if weighting is enabled
 
 - 
teardownpublic void teardown() cleans up the execution context of the federated worker
 - 
getPartialDecryptionpublic PlaintextMatrix[] getPartialDecryption(CiphertextMatrix[] encrypted_sum) 
 - 
getWorkerNamepublic String getWorkerName() - Specified by:
- getWorkerNamein class- PSWorker
 
 - 
getPartialPublicKeypublic PublicKey getPartialPublicKey() 
 - 
setPublicKeypublic void setPublicKey(PublicKey public_key) 
 
- 
 
-