Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped sktime to >=0.30.0 and scikit-learn to >=1.5.0 #1238

Merged
merged 5 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lightwood/analysis/nc/calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def analyze(self, info: Dict[str, object], **kwargs) -> Dict[str, object]:
all_classes = np.array([ns.encoded_val_data.encoders[ns.target].rev_map[idx] for idx in class_keys])

if data_type != dtype.tags:
enc = OneHotEncoder(sparse=False, handle_unknown='ignore')
enc = OneHotEncoder(sparse_output=False, handle_unknown='ignore')
enc.fit(all_classes.reshape(-1, 1))
output['label_encoders'] = enc # needed to repr cat labels inside nonconformist
else:
Expand Down
2 changes: 1 addition & 1 deletion lightwood/encoder/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class CatNormalizer:
def __init__(self, encoder_class='one_hot'):
self.encoder_class = encoder_class
if encoder_class == 'one_hot':
self.scaler = OneHotEncoder(sparse=False, handle_unknown='ignore')
self.scaler = OneHotEncoder(sparse_output=False, handle_unknown='ignore')
else:
self.scaler = OrdinalEncoder()

Expand Down
Loading
Loading