Skip to content

Commit 5a06ee0

Browse files
[DOC] Update API webpages to include new classes and functions (#2397)
* api part 1 * imports * only takes 2d
1 parent 8a613f6 commit 5a06ee0

40 files changed

+108
-49
lines changed
File renamed without changes.

aeon/base/estimators/hybrid/__init__.py renamed to aeon/base/_estimators/hybrid/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__all__ = ["BaseRIST"]
44

5-
from aeon.base.estimators.hybrid.base_rist import BaseRIST
5+
from aeon.base._estimators.hybrid.base_rist import BaseRIST

aeon/base/estimators/interval_based/__init__.py renamed to aeon/base/_estimators/interval_based/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__all__ = ["BaseIntervalForest"]
44

5-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
5+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest

aeon/classification/compose/_channel_ensemble.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import numpy as np
1111
from sklearn.utils import check_random_state
1212

13-
from aeon.base.estimators.compose.collection_channel_ensemble import (
13+
from aeon.base._estimators.compose.collection_channel_ensemble import (
1414
BaseCollectionChannelEnsemble,
1515
)
1616
from aeon.classification.base import BaseClassifier

aeon/classification/compose/_ensemble.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from sklearn.utils import check_random_state
99

10-
from aeon.base.estimators.compose.collection_ensemble import BaseCollectionEnsemble
10+
from aeon.base._estimators.compose.collection_ensemble import BaseCollectionEnsemble
1111
from aeon.classification.base import BaseClassifier
1212
from aeon.classification.sklearn._wrapper import SklearnClassifierWrapper
1313
from aeon.utils.sklearn import is_sklearn_classifier

aeon/classification/compose/_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__all__ = ["ClassifierPipeline"]
55

66

7-
from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
7+
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
88
from aeon.classification.base import BaseClassifier
99

1010

aeon/classification/hybrid/_rist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from sklearn.ensemble import ExtraTreesClassifier
77
from sklearn.preprocessing import FunctionTransformer
88

9-
from aeon.base.estimators.hybrid import BaseRIST
9+
from aeon.base._estimators.hybrid import BaseRIST
1010
from aeon.classification import BaseClassifier
1111
from aeon.utils.numba.general import first_order_differences_3d
1212

aeon/classification/interval_based/_cif.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import numpy as np
1010

11-
from aeon.base.estimators.interval_based import BaseIntervalForest
11+
from aeon.base._estimators.interval_based import BaseIntervalForest
1212
from aeon.classification import BaseClassifier
1313
from aeon.classification.sklearn import ContinuousIntervalTree
1414
from aeon.transformations.collection.feature_based import Catch22

aeon/classification/interval_based/_drcif.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import numpy as np
1111
from sklearn.preprocessing import FunctionTransformer
1212

13-
from aeon.base.estimators.interval_based import BaseIntervalForest
13+
from aeon.base._estimators.interval_based import BaseIntervalForest
1414
from aeon.classification.base import BaseClassifier
1515
from aeon.classification.sklearn._continuous_interval_tree import ContinuousIntervalTree
1616
from aeon.transformations.collection import PeriodogramTransformer

aeon/classification/interval_based/_interval_forest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
8+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
99
from aeon.classification.base import BaseClassifier
1010

1111

aeon/classification/interval_based/_rise.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
8+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
99
from aeon.classification import BaseClassifier
1010
from aeon.classification.sklearn import ContinuousIntervalTree
1111
from aeon.transformations.collection import (

aeon/classification/interval_based/_stsf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import numpy as np
1212
from sklearn.preprocessing import FunctionTransformer
1313

14-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
14+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
1515
from aeon.classification.base import BaseClassifier
1616
from aeon.transformations.collection import PeriodogramTransformer
1717
from aeon.utils.numba.general import first_order_differences_3d

aeon/classification/interval_based/_tsf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import numpy as np
1010

11-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
11+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
1212
from aeon.classification import BaseClassifier
1313
from aeon.classification.sklearn import ContinuousIntervalTree
1414

aeon/classification/sklearn/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
__all__ = [
44
"RotationForestClassifier",
55
"ContinuousIntervalTree",
6+
"SklearnClassifierWrapper",
67
]
78

89
from aeon.classification.sklearn._continuous_interval_tree import ContinuousIntervalTree
910
from aeon.classification.sklearn._rotation_forest_classifier import (
1011
RotationForestClassifier,
1112
)
13+
from aeon.classification.sklearn._wrapper import SklearnClassifierWrapper

aeon/classification/sklearn/_wrapper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SklearnClassifierWrapper(BaseClassifier):
2626
"""
2727

2828
_tags = {
29-
"X_inner_type": ["np-list", "numpy3D"],
29+
"X_inner_type": "numpy2D",
3030
}
3131

3232
def __init__(self, classifier, random_state=None):
@@ -35,7 +35,7 @@ def __init__(self, classifier, random_state=None):
3535

3636
super().__init__()
3737

38-
def _fit(self, X, y=None):
38+
def _fit(self, X, y):
3939
self.classifier_ = _clone_estimator(self.classifier, self.random_state)
4040
self.classifier_.fit(X, y)
4141
return self

aeon/clustering/averaging/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"VALID_BA_METRICS",
99
"shift_invariant_average",
1010
]
11+
1112
from aeon.clustering.averaging._averaging import mean_average
1213
from aeon.clustering.averaging._ba_petitjean import petitjean_barycenter_average
1314
from aeon.clustering.averaging._ba_subgradient import subgradient_barycenter_average

aeon/clustering/compose/_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__all__ = ["ClustererPipeline"]
55

66

7-
from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
7+
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
88
from aeon.clustering import BaseClusterer
99

1010

aeon/regression/compose/_ensemble.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import numpy as np
88

9-
from aeon.base.estimators.compose.collection_ensemble import BaseCollectionEnsemble
9+
from aeon.base._estimators.compose.collection_ensemble import BaseCollectionEnsemble
1010
from aeon.regression import BaseRegressor
1111
from aeon.regression.sklearn._wrapper import SklearnRegressorWrapper
1212
from aeon.utils.sklearn import is_sklearn_regressor

aeon/regression/compose/_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
__maintainer__ = ["MatthewMiddlehurst"]
44
__all__ = ["RegressorPipeline"]
55

6-
from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
6+
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
77
from aeon.regression.base import BaseRegressor
88

99

aeon/regression/hybrid/_rist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from sklearn.ensemble import ExtraTreesRegressor
22
from sklearn.preprocessing import FunctionTransformer
33

4-
from aeon.base.estimators.hybrid import BaseRIST
4+
from aeon.base._estimators.hybrid import BaseRIST
55
from aeon.regression import BaseRegressor
66
from aeon.utils.numba.general import first_order_differences_3d
77

aeon/regression/interval_based/_cif.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from aeon.base.estimators.interval_based import BaseIntervalForest
8+
from aeon.base._estimators.interval_based import BaseIntervalForest
99
from aeon.regression import BaseRegressor
1010
from aeon.transformations.collection.feature_based import Catch22
1111
from aeon.utils.numba.stats import row_mean, row_slope, row_std

aeon/regression/interval_based/_drcif.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import numpy as np
88
from sklearn.preprocessing import FunctionTransformer
99

10-
from aeon.base.estimators.interval_based import BaseIntervalForest
10+
from aeon.base._estimators.interval_based import BaseIntervalForest
1111
from aeon.regression import BaseRegressor
1212
from aeon.transformations.collection import PeriodogramTransformer
1313
from aeon.transformations.collection.feature_based import Catch22

aeon/regression/interval_based/_interval_forest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
8+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
99
from aeon.regression.base import BaseRegressor
1010

1111

aeon/regression/interval_based/_rise.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import numpy as np
77

8-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
8+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
99
from aeon.regression import BaseRegressor
1010
from aeon.transformations.collection import (
1111
AutocorrelationFunctionTransformer,

aeon/regression/interval_based/_tsf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import numpy as np
1010

11-
from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
11+
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
1212
from aeon.regression import BaseRegressor
1313

1414

aeon/transformations/collection/compose/_pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__all__ = ["CollectionTransformerPipeline"]
55

66

7-
from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
7+
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
88
from aeon.transformations.collection import BaseCollectionTransformer
99
from aeon.transformations.collection.compose import CollectionId
1010

docs/api_reference/anomaly_detection.rst

+14-4
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,26 @@ Detectors
6969
:toctree: auto_generated/
7070
:template: class.rst
7171

72-
7372
CBLOF
7473
COPOD
7574
DWT_MLEAD
7675
IsolationForest
77-
LOF
7876
KMeansAD
7977
LeftSTAMPi
78+
LOF
8079
MERLIN
80+
OneClassSVM
8181
PyODAdapter
82-
STRAY
8382
STOMP
84-
OneClassSVM
83+
STRAY
84+
85+
Base
86+
----
87+
88+
.. currentmodule:: aeon.anomaly_detection.base
89+
90+
.. autosummary::
91+
:toctree: auto_generated/
92+
:template: class.rst
93+
94+
BaseAnomalyDetector

docs/api_reference/base.rst

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Base classes
1717
BaseAeonEstimator
1818
BaseCollectionEstimator
1919
BaseSeriesEstimator
20+
ComposableEstimatorMixin

docs/api_reference/classification.rst

+3-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Deep learning
3434
:toctree: auto_generated/
3535
:template: class.rst
3636

37-
BaseDeepClassifier
3837
TimeCNNClassifier
3938
EncoderClassifier
4039
FCNClassifier
@@ -59,6 +58,7 @@ Dictionary-based
5958
ContractableBOSS
6059
IndividualBOSS
6160
IndividualTDE
61+
MrSEQLClassifier
6262
MrSQMClassifier
6363
MUSE
6464
REDCOMETS
@@ -140,6 +140,7 @@ Shapelet-based
140140
LearningShapeletClassifier
141141
RDSTClassifier
142142
SASTClassifier
143+
RSASTClassifier
143144
ShapeletTransformClassifier
144145

145146
sklearn
@@ -153,6 +154,7 @@ sklearn
153154

154155
ContinuousIntervalTree
155156
RotationForestClassifier
157+
SklearnClassifierWrapper
156158

157159
Early classification
158160
--------------------
@@ -179,13 +181,6 @@ Ordinal classification
179181
IndividualOrdinalTDE
180182
OrdinalTDE
181183

182-
183-
.. autosummary::
184-
:toctree: auto_generated/
185-
:template: function.rst
186-
187-
histogram_intersection
188-
189184
Composition
190185
-----------
191186

0 commit comments

Comments
 (0)