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>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFederatedPSControlThread(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 Summary
Modifier and TypeMethodDescriptioncall()Entry point of the functionalitygetPartialDecryption(CiphertextMatrix[] encrypted_sum) voidsetPublicKey(PublicKey public_key) voidsetup(double weightingFactor) Sets up the federated worker and control threadvoidteardown()cleans up the execution context of the federated workerMethods inherited from class org.apache.sysds.runtime.controlprogram.paramserv.PSWorker
getFeatures, getLabels, setFeatures, setLabels
-
Constructor Details
-
FederatedPSControlThread
public 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 Details
-
setup
public 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
-
teardown
public void teardown()cleans up the execution context of the federated worker -
call
Entry point of the functionality -
getPartialDecryption
-
getWorkerName
- Specified by:
getWorkerNamein classPSWorker
-
getPartialPublicKey
-
setPublicKey
-