Skip to content

Commit

Permalink
[DOC] Update API webpages to include new classes and functions (#2397)
Browse files Browse the repository at this point in the history
* api part 1

* imports

* only takes 2d
  • Loading branch information
MatthewMiddlehurst authored Nov 27, 2024
1 parent 8a613f6 commit 5a06ee0
Show file tree
Hide file tree
Showing 40 changed files with 108 additions and 49 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ["BaseRIST"]

from aeon.base.estimators.hybrid.base_rist import BaseRIST
from aeon.base._estimators.hybrid.base_rist import BaseRIST
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__all__ = ["BaseIntervalForest"]

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
2 changes: 1 addition & 1 deletion aeon/classification/compose/_channel_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import numpy as np
from sklearn.utils import check_random_state

from aeon.base.estimators.compose.collection_channel_ensemble import (
from aeon.base._estimators.compose.collection_channel_ensemble import (
BaseCollectionChannelEnsemble,
)
from aeon.classification.base import BaseClassifier
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/compose/_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from sklearn.utils import check_random_state

from aeon.base.estimators.compose.collection_ensemble import BaseCollectionEnsemble
from aeon.base._estimators.compose.collection_ensemble import BaseCollectionEnsemble
from aeon.classification.base import BaseClassifier
from aeon.classification.sklearn._wrapper import SklearnClassifierWrapper
from aeon.utils.sklearn import is_sklearn_classifier
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/compose/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ["ClassifierPipeline"]


from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.classification.base import BaseClassifier


Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/hybrid/_rist.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.preprocessing import FunctionTransformer

from aeon.base.estimators.hybrid import BaseRIST
from aeon.base._estimators.hybrid import BaseRIST
from aeon.classification import BaseClassifier
from aeon.utils.numba.general import first_order_differences_3d

Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/interval_based/_cif.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import numpy as np

from aeon.base.estimators.interval_based import BaseIntervalForest
from aeon.base._estimators.interval_based import BaseIntervalForest
from aeon.classification import BaseClassifier
from aeon.classification.sklearn import ContinuousIntervalTree
from aeon.transformations.collection.feature_based import Catch22
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/interval_based/_drcif.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import numpy as np
from sklearn.preprocessing import FunctionTransformer

from aeon.base.estimators.interval_based import BaseIntervalForest
from aeon.base._estimators.interval_based import BaseIntervalForest
from aeon.classification.base import BaseClassifier
from aeon.classification.sklearn._continuous_interval_tree import ContinuousIntervalTree
from aeon.transformations.collection import PeriodogramTransformer
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/interval_based/_interval_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.classification.base import BaseClassifier


Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/interval_based/_rise.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.classification import BaseClassifier
from aeon.classification.sklearn import ContinuousIntervalTree
from aeon.transformations.collection import (
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/interval_based/_stsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import numpy as np
from sklearn.preprocessing import FunctionTransformer

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.classification.base import BaseClassifier
from aeon.transformations.collection import PeriodogramTransformer
from aeon.utils.numba.general import first_order_differences_3d
Expand Down
2 changes: 1 addition & 1 deletion aeon/classification/interval_based/_tsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import numpy as np

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.classification import BaseClassifier
from aeon.classification.sklearn import ContinuousIntervalTree

Expand Down
2 changes: 2 additions & 0 deletions aeon/classification/sklearn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
__all__ = [
"RotationForestClassifier",
"ContinuousIntervalTree",
"SklearnClassifierWrapper",
]

from aeon.classification.sklearn._continuous_interval_tree import ContinuousIntervalTree
from aeon.classification.sklearn._rotation_forest_classifier import (
RotationForestClassifier,
)
from aeon.classification.sklearn._wrapper import SklearnClassifierWrapper
4 changes: 2 additions & 2 deletions aeon/classification/sklearn/_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SklearnClassifierWrapper(BaseClassifier):
"""

_tags = {
"X_inner_type": ["np-list", "numpy3D"],
"X_inner_type": "numpy2D",
}

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

super().__init__()

def _fit(self, X, y=None):
def _fit(self, X, y):
self.classifier_ = _clone_estimator(self.classifier, self.random_state)
self.classifier_.fit(X, y)
return self
Expand Down
1 change: 1 addition & 0 deletions aeon/clustering/averaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"VALID_BA_METRICS",
"shift_invariant_average",
]

from aeon.clustering.averaging._averaging import mean_average
from aeon.clustering.averaging._ba_petitjean import petitjean_barycenter_average
from aeon.clustering.averaging._ba_subgradient import subgradient_barycenter_average
Expand Down
2 changes: 1 addition & 1 deletion aeon/clustering/compose/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ["ClustererPipeline"]


from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.clustering import BaseClusterer


Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/compose/_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import numpy as np

from aeon.base.estimators.compose.collection_ensemble import BaseCollectionEnsemble
from aeon.base._estimators.compose.collection_ensemble import BaseCollectionEnsemble
from aeon.regression import BaseRegressor
from aeon.regression.sklearn._wrapper import SklearnRegressorWrapper
from aeon.utils.sklearn import is_sklearn_regressor
Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/compose/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__maintainer__ = ["MatthewMiddlehurst"]
__all__ = ["RegressorPipeline"]

from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.regression.base import BaseRegressor


Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/hybrid/_rist.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from sklearn.ensemble import ExtraTreesRegressor
from sklearn.preprocessing import FunctionTransformer

from aeon.base.estimators.hybrid import BaseRIST
from aeon.base._estimators.hybrid import BaseRIST
from aeon.regression import BaseRegressor
from aeon.utils.numba.general import first_order_differences_3d

Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/interval_based/_cif.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from aeon.base.estimators.interval_based import BaseIntervalForest
from aeon.base._estimators.interval_based import BaseIntervalForest
from aeon.regression import BaseRegressor
from aeon.transformations.collection.feature_based import Catch22
from aeon.utils.numba.stats import row_mean, row_slope, row_std
Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/interval_based/_drcif.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from sklearn.preprocessing import FunctionTransformer

from aeon.base.estimators.interval_based import BaseIntervalForest
from aeon.base._estimators.interval_based import BaseIntervalForest
from aeon.regression import BaseRegressor
from aeon.transformations.collection import PeriodogramTransformer
from aeon.transformations.collection.feature_based import Catch22
Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/interval_based/_interval_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.regression.base import BaseRegressor


Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/interval_based/_rise.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.regression import BaseRegressor
from aeon.transformations.collection import (
AutocorrelationFunctionTransformer,
Expand Down
2 changes: 1 addition & 1 deletion aeon/regression/interval_based/_tsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import numpy as np

from aeon.base.estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.base._estimators.interval_based.base_interval_forest import BaseIntervalForest
from aeon.regression import BaseRegressor


Expand Down
2 changes: 1 addition & 1 deletion aeon/transformations/collection/compose/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ["CollectionTransformerPipeline"]


from aeon.base.estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.base._estimators.compose.collection_pipeline import BaseCollectionPipeline
from aeon.transformations.collection import BaseCollectionTransformer
from aeon.transformations.collection.compose import CollectionId

Expand Down
18 changes: 14 additions & 4 deletions docs/api_reference/anomaly_detection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,26 @@ Detectors
:toctree: auto_generated/
:template: class.rst


CBLOF
COPOD
DWT_MLEAD
IsolationForest
LOF
KMeansAD
LeftSTAMPi
LOF
MERLIN
OneClassSVM
PyODAdapter
STRAY
STOMP
OneClassSVM
STRAY

Base
----

.. currentmodule:: aeon.anomaly_detection.base

.. autosummary::
:toctree: auto_generated/
:template: class.rst

BaseAnomalyDetector
1 change: 1 addition & 0 deletions docs/api_reference/base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Base classes
BaseAeonEstimator
BaseCollectionEstimator
BaseSeriesEstimator
ComposableEstimatorMixin
11 changes: 3 additions & 8 deletions docs/api_reference/classification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Deep learning
:toctree: auto_generated/
:template: class.rst

BaseDeepClassifier
TimeCNNClassifier
EncoderClassifier
FCNClassifier
Expand All @@ -59,6 +58,7 @@ Dictionary-based
ContractableBOSS
IndividualBOSS
IndividualTDE
MrSEQLClassifier
MrSQMClassifier
MUSE
REDCOMETS
Expand Down Expand Up @@ -140,6 +140,7 @@ Shapelet-based
LearningShapeletClassifier
RDSTClassifier
SASTClassifier
RSASTClassifier
ShapeletTransformClassifier

sklearn
Expand All @@ -153,6 +154,7 @@ sklearn

ContinuousIntervalTree
RotationForestClassifier
SklearnClassifierWrapper

Early classification
--------------------
Expand All @@ -179,13 +181,6 @@ Ordinal classification
IndividualOrdinalTDE
OrdinalTDE


.. autosummary::
:toctree: auto_generated/
:template: function.rst

histogram_intersection

Composition
-----------

Expand Down
Loading

0 comments on commit 5a06ee0

Please sign in to comment.