Skip to content

Commit

Permalink
Fixing pycodestyle error
Browse files Browse the repository at this point in the history
  • Loading branch information
naoise-h committed Jan 23, 2024
1 parent c45f569 commit 6eb6e4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion diffprivlib/models/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ def _logistic_regression_path(X, y, epsilon, data_norm, pos_class=None, Cs=10, f
function_sensitivity=0.25, data_sensitivity=data_norm, random_state=random_state)
noisy_logistic_loss = vector_mech.randomise(func)

args = (X, target, sample_weight, l2_reg_strength) if SKL_LOSS_MODULE else (X, target, l2_reg_strength, sample_weight)
args = (X, target, sample_weight, l2_reg_strength) if SKL_LOSS_MODULE else (X, target, l2_reg_strength,
sample_weight)

iprint = [-1, 50, 1, 100, 101][np.searchsorted(np.array([0, 1, 2, 3]), verbose)]
output_vec, _, info = optimize.fmin_l_bfgs_b(noisy_logistic_loss, output_vec, fprime=None,
Expand Down

0 comments on commit 6eb6e4a

Please sign in to comment.