Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting rid of the bug if repeated calls of FedECA #7

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion fedeca/fedeca_core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Federate causal inference on distributed data."""
import copy
import logging
import sys
import time
Expand Down Expand Up @@ -181,7 +182,8 @@ def __init__(
self.l1_ratio = l1_ratio
self.initial_step_size = initial_step_size
self.learning_rate_strategy = learning_rate_strategy
self.num_rounds_list = num_rounds_list
# Careful about mutable default args
self.num_rounds_list = copy.deepcopy(num_rounds_list)
self.timeout = timeout
self.sleep_time = sleep_time
self.damping_factor_nr = damping_factor_nr
Expand Down
Loading