Skip to content

Commit

Permalink
Merge pull request #160 from zakv/159-fix-parameter-scaler-init
Browse files Browse the repository at this point in the history
Remove `*args` from `ParameterScaler.__init__()`
  • Loading branch information
zakv authored Feb 10, 2023
2 parents 2d9e6a5 + 77a9676 commit acd53af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mloop/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class ParameterScaler(skp.MinMaxScaler):
*args: Additional arguments are passed to `MinMaxScaler.__init__()`.
**kwargs: Arbitrary keyword arguments are passed to `MinMaxScaler.__init__()`.
'''
def __init__(self, min_boundary, max_boundary, *args, **kwargs):
def __init__(self, min_boundary, max_boundary, **kwargs):
if len(min_boundary) != len(max_boundary):
raise ValueError(
"The minimum and maximum boundary arrays must have the same lengths but "
Expand All @@ -506,7 +506,7 @@ def __init__(self, min_boundary, max_boundary, *args, **kwargs):

self.min_boundary = min_boundary
self.max_boundary = max_boundary
return super().__init__(*args, **kwargs)
return super().__init__(**kwargs)

def partial_fit(self, X=None, *args, **kwargs):
'''
Expand Down

0 comments on commit acd53af

Please sign in to comment.