-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[ENH] ensure that all estimators have two test parameter sets #3429
Copy link
Copy link
Open
Labels
enhancementAdding new functionalityAdding new functionalitygood first issueGood for newcomersGood for newcomersmaintenanceContinuous integration, unit testing & package distributionContinuous integration, unit testing & package distributionmodule:teststest framework functionality - only framework, excl specific teststest framework functionality - only framework, excl specific tests
Metadata
Metadata
Assignees
Labels
enhancementAdding new functionalityAdding new functionalitygood first issueGood for newcomersGood for newcomersmaintenanceContinuous integration, unit testing & package distributionContinuous integration, unit testing & package distributionmodule:teststest framework functionality - only framework, excl specific teststest framework functionality - only framework, excl specific tests
We should ensure that all estimators (that have parameters) possess at least two test parameter sets.
The two (or more) parameter sets should:
fitis the bottleneck (so we should not overdo it with too many parameter sets)Recipe:
get_test_paramsimplemented, orget_test_paramsreturning only a single dictionary instead of a list of two (or more) dictionaries.get_test_params, and remove the estimator fromEXCLUDED_TESTS_BY_TESTinsktime.tests._config"results_comparison"parameter set, ignore that - add new parameters only to the unconditional parameter setAn example PR that adds second parameter sets for some estimators can be found here: #3428
Finding some estimators that have only one parameter set can be done quickly by checking the variable
EXCLUDED_TESTS_BY_TESTinsktime.tests._config, estimators which do not comply with the "number of test parameter sets" requirements are skipping"test_get_test_params_coverage".Alternatively, locally running code which does this:
Current output:
ClaSPTransformerCNTCNetwork,CanonicalIntervalForest,CircularBinarySegmentation,ColumnEnsembleClassifierColumnTransformerColumnwiseTransformerDOBINDWTTransformerDistFromAlignerDistanceFeaturesDontUpdateDummyRegressorFeatureSelectionGreedyGaussianSegmentationInceptionTimeNetworkIndividualBOSSIndividualTDELogTransformerMCDCNNClassifierMCDCNNNetworkMCDCNNRegressorMLPNetworkMatrixProfileOnlineEnsembleForecasterPAAPCATransformerPlateauFinderRandomIntervalFeatureExtractorRandomIntervalSegmenterRandomIntervalsRandomSamplesAugmenterReducerTransformShapeletTransformSlidingWindowSegmenterSlopeTransformerStackingForecasterSupervisedTimeSeriesForestTapNetNetworkTimeBinnerTruncationTransformerUnobservedComponentsWhiteNoiseAugmenter