0bce5765b02513a167e454f112a61bd70d47d6ff,gateway/app/main/processes/controller.py,FLController,last_participation,#FLController#Any#Any#Any#,65
Before Change
_cycle_sequences = self._cycles.get((model_id, version), None)
if _cycle_sequences:
for i in range(len(_cycle_sequences)):
if _cycle_sequences[i].contains(worker_id):
return i
return 0
def create_process(
self,
After Change
last_participation: Index of the last cycle assigned to this worker.
_model = self._models.first(id=model_id)
_cycles = self._cycles.query(fl_process_id=_model.fl_process_id)
last = 0
if not len(_cycles):
return last
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: OpenMined/Grid
Commit Name: 0bce5765b02513a167e454f112a61bd70d47d6ff
Time: 2020-03-02
Author: ionesiojr@gmail.com
File Name: gateway/app/main/processes/controller.py
Class Name: FLController
Method Name: last_participation
Project Name: regel/loudml
Commit Name: c7e3bd3e5c922c9c541fd26bb48fd2cfaf4cd0d1
Time: 2017-12-11
Author: sebastien.regel@gmail.com
File Name: python/loudml/som.py
Class Name: SOM
Method Name: map_vects
Project Name: pavlin-policar/openTSNE
Commit Name: 4d56b090275981f35a2c84a9f347aedb273bbe85
Time: 2018-06-18
Author: pavlin.g.p@gmail.com
File Name: tsne/tsne.py
Class Name: TSNE
Method Name: fit