88 ParamsMixin ,
99 EstimatorMixin ,
1010 clone ,
11- warn_deprecated ,
11+ deprecated ,
1212)
1313
1414
@@ -17,25 +17,21 @@ class TrivialClustering(tdamapper.core.TrivialClustering):
1717 **DEPRECATED**: This class is deprecated and will be removed in a future
1818 release. Use :class:`tdamapper.core.TrivialClustering`.
1919 """
20- def __init__ (self ):
21- warn_deprecated (
22- TrivialClustering .__qualname__ ,
23- tdamapper .core .TrivialClustering .__qualname__ ,
24- )
25- super ().__init__ ()
20+
21+ @deprecated ('This class is deprecated and will be removed in a future release. Use tdamapper.core.TrivialClustering.' )
22+ def __init__ (self , * args , ** kwargs ):
23+ super ().__init__ (* args , ** kwargs )
2624
2725
2826class FailSafeClustering (tdamapper .core .FailSafeClustering ):
2927 """
3028 **DEPRECATED**: This class is deprecated and will be removed in a future
3129 release. Use :class:`tdamapper.core.FailSafeClustering`.
3230 """
33- def __init__ (self , clustering = None , verbose = True ):
34- warn_deprecated (
35- FailSafeClustering .__qualname__ ,
36- tdamapper .core .FailSafeClustering .__qualname__ ,
37- )
38- super ().__init__ (clustering , verbose )
31+
32+ @deprecated ('This class is deprecated and will be removed in a future release. Use tdamapper.core.FailSafeClustering.' )
33+ def __init__ (self , * args , ** kwargs ):
34+ super ().__init__ (* args , ** kwargs )
3935
4036
4137class _MapperClustering (EstimatorMixin , ParamsMixin ):
@@ -73,13 +69,6 @@ class MapperClustering(_MapperClustering):
7369 release. Use :class:`tdamapper.learn.MapperClustering`.
7470 """
7571
76- def __init__ (self , cover = None , clustering = None , n_jobs = 1 ):
77- warn_deprecated (
78- MapperClustering .__qualname__ ,
79- 'tdamapper.learn.MapperClustering' ,
80- )
81- super ().__init__ (
82- cover = cover ,
83- clustering = clustering ,
84- n_jobs = n_jobs ,
85- )
72+ @deprecated ('This class is deprecated and will be removed in a future release. Use tdamapper.learn.MapperClustering.' )
73+ def __init__ (self , * args , ** kwargs ):
74+ super ().__init__ (* args , ** kwargs )
0 commit comments