-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python 3.12 | Remove python 3.7 (#15)
* update python versions * add adapter for minmax scaler to handle list instead of tuple * upgrade mlblocks * add dep packages * fix lint * remove python 3.13 for now
- Loading branch information
Showing
7 changed files
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from sklearn.preprocessing import MinMaxScaler | ||
|
||
|
||
class Scaler(MinMaxScaler): | ||
"""sklearn.preprocessing.MinMaxScaler adapter. | ||
Convert feature_range into a tuple. | ||
Args: | ||
feature_range (list): | ||
List of two elements. Desired range of transformed data. | ||
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"name": "sklearn.preprocessing.MinMaxScaler", | ||
"contributors": [ | ||
"Hector Dominguez <[email protected]>" | ||
"Hector Dominguez <[email protected]>", | ||
"Sarah Alnegheimish <[email protected]>" | ||
], | ||
"documentation": "http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html", | ||
"description": "Transforms features by scaling each feature to a given range", | ||
|
@@ -10,7 +11,7 @@ | |
"subtype": "transformer" | ||
}, | ||
"modalities": [], | ||
"primitive": "sklearn.preprocessing.MinMaxScaler", | ||
"primitive": "mlstars.adapters.sklearn.Scaler", | ||
"fit": { | ||
"method": "fit", | ||
"args": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters