Skip to content

Commit 2a1df1a

Browse files
Fix deprecation warnings' suggested code
Co-authored-by: nicolasservel <nico.servel@gmail.com>
1 parent bd0cb9c commit 2a1df1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dataikuapi/dss/ml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,10 @@ def set_weighting(self, method, feature_name=None):
460460

461461
def remove_sample_weighting(self):
462462
"""
463-
Deprecated. Use unset_weighting() instead
463+
Deprecated. Use set_weighting(method=\"NO_WEIGHTING\") instead
464464
"""
465-
warnings.warn("remove_sample_weighting() is deprecated, please use set_weigthing(method=\"NO_WEIGHTING\") instead", DeprecationWarning)
466-
return self.set_weigthing(method="NO_WEIGHTING")
465+
warnings.warn("remove_sample_weighting() is deprecated, please use set_weighting(method=\"NO_WEIGHTING\") instead", DeprecationWarning)
466+
return self.set_weighting(method="NO_WEIGHTING")
467467

468468

469469
class DSSClusteringMLTaskSettings(DSSMLTaskSettings):

0 commit comments

Comments
 (0)