AGGFUNCS = [ np.mean, np.std, np.var, np.sum, np.prod, np.min, np.max, np.argmin, np.argmax, np.any, ] X1_list_df = make_transformer_problem(n_instances=4, n_columns=4, n_timepoints=5, random_state=1, return_numpy=False) X2_list_df = make_transformer_problem(n_instances=5, n_columns=4, n_timepoints=5, random_state=2, return_numpy=False) X1_num_pan = convert_to(X1_list_df, to_type="numpy3D") X2_num_pan = convert_to(X2_list_df, to_type="numpy3D") def test_aggr(): """Test that AggrDist produces expected pre-computed result on fixtures.""" # test 3d numpy
from sktime.utils import all_estimators from sktime.utils._testing.panel import make_transformer_problem from sktime.tests._config import ESTIMATOR_TEST_PARAMS PAIRWISE_TRANSFORMERS = all_estimators(estimator_types="transformer-pairwise", return_names=False) PAIRWISE_TRANSFORMERS_PANEL = all_estimators( estimator_types="transformer-pairwise-panel", return_names=False) EXPECTED_SHAPE = (4, 5) X1_tab = make_transformer_problem( n_instances=4, n_columns=4, n_timepoints=5, random_state=1, return_numpy=True, panel=False, ) X2_tab = make_transformer_problem( n_instances=5, n_columns=5, n_timepoints=5, random_state=2, return_numpy=True, panel=False, ) X1_tab_df = make_transformer_problem( n_instances=4, n_columns=4,
# -*- coding: utf-8 -*- import numpy as np from sktime.utils._testing.panel import make_transformer_problem from sktime.dists_kernels.scipy_dist import ScipyDist X1 = make_transformer_problem( n_instances=5, n_columns=5, n_timepoints=5, random_state=1, return_numpy=True, panel=False, ) X2 = make_transformer_problem( n_instances=5, n_columns=5, n_timepoints=5, random_state=2, return_numpy=True, panel=False, ) X1_df = make_transformer_problem( n_instances=5, n_columns=5, n_timepoints=5, random_state=1, return_numpy=False, panel=False, )