Skip to content

Commit 4854a3a

Browse files
committed
Add _get_score_params to SktimeDetectorExperiment; set object_type tag on TSDetectorOptCv
1 parent cd2b5f0 commit 4854a3a

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/hyperactive/experiment/integrations/sktime_detector.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,15 @@ def get_test_params(cls, parameter_set="default"):
269269
return [params_more]
270270
else:
271271
return [params_default]
272+
273+
@classmethod
274+
def _get_score_params(cls):
275+
"""Return settings for testing score/evaluate functions.
276+
277+
The returned list should match the length of ``get_test_params()`` and
278+
contain dictionaries of hyperparameter settings that are valid
279+
inputs for ``score``/``evaluate`` when an instance is created from the
280+
corresponding element of ``get_test_params()``.
281+
"""
282+
# For the simple detector tests, an empty dict of params is adequate.
283+
return [{}]

src/hyperactive/integrations/sktime/_detector.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class TSDetectorOptCv(_DelegatedDetector):
2727
"authors": "arnavk23",
2828
"maintainers": "fkiraly",
2929
"python_dependencies": "sktime",
30+
"object_type": "optimizer",
3031
}
3132

3233
_delegate_name = "best_detector_"

0 commit comments

Comments
 (0)