File tree 2 files changed +38
-1
lines changed
classification/deep_learning
2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1
- """Base class for estimators that fit collections of time series."""
1
+ """
2
+ Base class for estimators that fit collections of time series.
3
+
4
+ class name: BaseCollectionEstimator
5
+
6
+ Defining methods:
7
+ preprocessing - _preprocess_collection(self, X, store_metadata=True)
8
+ input checking - _check_X(self, X)
9
+ input conversion - _convert_X(self, X)
10
+ shape checking - _check_shape(self, X)
11
+
12
+ Inherited inspection methods:
13
+ hyper-parameter inspection - get_params()
14
+ fitted parameter inspection - get_fitted_params()
15
+
16
+ State:
17
+ fitted model/strategy - by convention, any attributes ending in "_"
18
+ fitted state flag - is_fitted (property)
19
+ fitted state inspection - check_is_fitted()
20
+
21
+ """
2
22
3
23
from abc import abstractmethod
4
24
Original file line number Diff line number Diff line change 1
1
"""
2
2
Abstract base class for the Keras neural network classifiers.
3
3
4
+ class name: BaseDeepClassifier
5
+
6
+ Defining methods:
7
+ fitting - fit(self, X, y)
8
+ predicting - predict(self, X)
9
+ - predict_proba(self, X)
10
+ model building - build_model(self, input_shape, n_classes) (abstract method)
11
+
12
+ Inherited inspection methods:
13
+ hyper-parameter inspection - get_params()
14
+ fitted parameter inspection - get_fitted_params()
15
+
16
+ State:
17
+ fitted model/strategy - by convention, any attributes ending in "_"
18
+ fitted state flag - is_fitted (property)
19
+ fitted state inspection - check_is_fitted()
20
+
4
21
The reason for this class between BaseClassifier and deep_learning classifiers is
5
22
because we can generalise tags, _predict and _predict_proba
6
23
"""
You can’t perform that action at this time.
0 commit comments