Skip to content

Commit

Permalink
Adhering to PEP8 guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
aiaragomes committed Oct 17, 2023
1 parent 512fd3c commit 3909949
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
exclude = __pycache__,.pytest_cache,.venv,venv
exclude = __pycache__,.venv,.venv2,v6_logistic_regression_py.egg-info
max-line-length = 80
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ input_ = {
'org_ids': [2, 3], # organisations to run algorithm
'predictors': ['c1', 'c2'], # columns to be used as predictors
'outcome': 'outcome', # column to be used as outcome
'classes': [0, 1], # classes to be predicted
'max_iter': 15, # maximum number of iterations to perform
'delta': 0.01, # threshold loss difference for convergence
}
Expand Down
1 change: 1 addition & 0 deletions v6_logistic_regression_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def master(
# The next steps are run until the maximum number of iterations or
# convergence is reached
iteration = 0
loss = None
loss_diff = 2*delta
while (iteration < max_iter) and (loss_diff > delta):
# The input for the partial algorithm
Expand Down
2 changes: 0 additions & 2 deletions v6_logistic_regression_py/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
""" Sample code to test the federated algorithm with a mock client
"""
import os
import numpy as np
from sklearn.linear_model import LogisticRegression
from vantage6.tools.mock_client import ClientMockProtocol


Expand Down

0 comments on commit 3909949

Please sign in to comment.