Skip to content

add 2LS method#18

Open
nanhhao04 wants to merge 1 commit intomainfrom
2Ls
Open

add 2LS method#18
nanhhao04 wants to merge 1 commit intomainfrom
2Ls

Conversation

@nanhhao04
Copy link
Collaborator

No description provided.

@truongtruong373 truongtruong373 self-requested a review March 12, 2026 08:26
@truongtruong373 truongtruong373 added the enhancement New feature or request label Mar 12, 2026
# node[3] là out_cluster_id
unique_out_clusters = sorted(list(set(node[3] for node in self.list_clients))) # thứ tự 0 1 2
for o_idx in unique_out_clusters:
self.out_cluster_models[o_idx] = copy.deepcopy(initial_sd)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

biến out_cluster_models đang không cần thiết nên đổi thành một biến kiểu global_model

self.send_to_response(node[0], pickle.dumps({"action": "STOP", "message": "Stop!", "parameters": None}))
return

if register:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bỏ biến register cũng được

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants