Skip to content

Commit

Permalink
updating implementation for smoothed logistic regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaher22 committed May 7, 2020
1 parent 81640a8 commit 953115d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 112 deletions.
111 changes: 0 additions & 111 deletions CESmoothedLogisticRegression.py

This file was deleted.

2 changes: 1 addition & 1 deletion CustomLogisticRegression.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def grad(AB):
return AB_[0:-1], AB_[-1]

class CustomLogisticRegression():
def __init__(self, smoothing_factor_pos = 0, smoothing_factor_neg = 0, tolerance = 1e-1, regularization = 'none', regularization_strength = 0, platt_scaling = False):
def __init__(self, smoothing_factor_pos = 0, smoothing_factor_neg = 0, tolerance = 1e-3, regularization = 'none', regularization_strength = 0, platt_scaling = False):
self.smoothing_factor_pos = smoothing_factor_pos
self.smoothing_factor_neg = smoothing_factor_neg
self.platt = platt_scaling
Expand Down

0 comments on commit 953115d

Please sign in to comment.