Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahmish committed Nov 20, 2024
1 parent bdd37a0 commit be143bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mlstars/adapters/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@

from sklearn.preprocessing import MinMaxScaler


class Scaler(MinMaxScaler):
"""sklearn.preprocessing.MinMaxScaler adapter.
Convert feature_range into a tuple.
Args:
feature_range (list):
feature_range (list):
List of two elements. Desired range of transformed data.
copy (bool):
copy (bool):
Set to False to perform inplace row normalization and avoid a copy.
"""

def __init__(self, feature_range=(0, 1), copy=True):
feature_range = tuple(feature_range)

super(Scaler, self).__init__(
feature_range=feature_range,
copy=copy
)
)

0 comments on commit be143bd

Please sign in to comment.