Skip to content

Commit

Permalink
spacing fixed
Browse files Browse the repository at this point in the history
changing tab for spaces to build correctly
  • Loading branch information
clwarrior committed Sep 21, 2021
1 parent c732892 commit 65e4da8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion MRCpy/base_mrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def fit(self, X, Y):
elif self.phi == 'linear':
self.phi = BasePhi(n_classes=n_classes,
fit_intercept=self.fit_intercept,
**self.phi_kwargs)
**self.phi_kwargs)
elif self.phi == 'threshold':
self.phi = ThresholdPhi(n_classes=n_classes,
fit_intercept=self.fit_intercept,
Expand Down
2 changes: 1 addition & 1 deletion MRCpy/phi/base_phi.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, n_classes, fit_intercept=True, one_hot=False):

self.n_classes = n_classes
self.fit_intercept = fit_intercept
self.one_hot=one_hot
self.one_hot = one_hot

def fit(self, X, Y=None):
'''
Expand Down
5 changes: 3 additions & 2 deletions MRCpy/phi/random_fourier_phi.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class RandomFourierPhi(BasePhi):
Whether to calculate the intercept.
If set to false, no intercept will be used in calculations
(i.e. data is expected to be already centered).
one_hot : bool, default=False
Only applies in the binary case, namely, only when there are two
classes. If set to true, one-hot-encoding will be used. If set to
Expand Down Expand Up @@ -86,7 +86,8 @@ def __init__(self, n_classes, fit_intercept=True, gamma='avg_ann_50',
n_components=300, random_state=None, one_hot=False):

# Call the base class init function.
super().__init__(n_classes=n_classes, fit_intercept=fit_intercept, one_hot=one_hot)
super().__init__(n_classes=n_classes, fit_intercept=fit_intercept,
one_hot=one_hot)

self.gamma = gamma
self.n_components = n_components
Expand Down
5 changes: 3 additions & 2 deletions MRCpy/phi/random_relu_phi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RandomReLUPhi(BasePhi):
Whether to calculate the intercept.
If set to false, no intercept will be used in calculations
(i.e. data is expected to be already centered).
one_hot : bool, default=False
Only applies in the binary case, namely, only when there are two
classes. If set to true, one-hot-encoding will be used. If set to
Expand Down Expand Up @@ -82,7 +82,8 @@ def __init__(self, n_classes, fit_intercept=True, gamma='avg_ann_50',
n_components=300, random_state=None, one_hot=False):

# Call the base class init function.
super().__init__(n_classes=n_classes, fit_intercept=fit_intercept, one_hot=one_hot)
super().__init__(n_classes=n_classes, fit_intercept=fit_intercept,
one_hot=one_hot)

self.gamma = gamma
self.n_components = n_components
Expand Down
5 changes: 3 additions & 2 deletions MRCpy/phi/threshold_phi.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ThresholdPhi(BasePhi):
Whether to calculate the intercept.
If set to false, no intercept will be used in calculations
(i.e. data is expected to be already centered).
one_hot : bool, default=False
Only applies in the binary case, namely, only when there are two
classes. If set to true, one-hot-encoding will be used. If set to
Expand Down Expand Up @@ -62,7 +62,8 @@ def __init__(self, n_classes, fit_intercept=True,
n_thresholds=200, one_hot=False):

# Call the base class init function.
super().__init__(n_classes=n_classes, fit_intercept=fit_intercept, one_hot=one_hot)
super().__init__(n_classes=n_classes, fit_intercept=fit_intercept,
one_hot=one_hot)

self.n_thresholds = n_thresholds

Expand Down

0 comments on commit 65e4da8

Please sign in to comment.