e753bb1b0170eb3d6fabc93311c31f4094f1cdad,tslearn/tests/test_serialize_models.py,,test_serialize_timeserieskmeans,#,137

Before Change


def test_serialize_timeserieskmeans():
    seed = 0
    numpy.random.seed(seed)
    X_train, y_train, X_test, y_test = CachedDatasets().load_dataset("Trace")
    X_train = X_train[y_train < 4]  // Keep first 3 classes
    numpy.random.shuffle(X_train)
    // Keep only 50 time series
    X_train = TimeSeriesScalerMeanVariance().fit_transform(X_train[:50])

After Change




def test_serialize_timeserieskmeans():
    n, sz, d = 15, 10, 3
    rng = numpy.random.RandomState(0)
    X = rng.randn(n, sz, d)

    dba_km = TimeSeriesKMeans(n_clusters=3,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: rtavenar/tslearn
Commit Name: e753bb1b0170eb3d6fabc93311c31f4094f1cdad
Time: 2020-01-22
Author: kushalkolar@gmail.com
File Name: tslearn/tests/test_serialize_models.py
Class Name:
Method Name: test_serialize_timeserieskmeans


Project Name: rtavenar/tslearn
Commit Name: e753bb1b0170eb3d6fabc93311c31f4094f1cdad
Time: 2020-01-22
Author: kushalkolar@gmail.com
File Name: tslearn/tests/test_serialize_models.py
Class Name:
Method Name: test_serialize_kshape


Project Name: rtavenar/tslearn
Commit Name: e753bb1b0170eb3d6fabc93311c31f4094f1cdad
Time: 2020-01-22
Author: kushalkolar@gmail.com
File Name: tslearn/tests/test_serialize_models.py
Class Name:
Method Name: test_serialize_knn


Project Name: rtavenar/tslearn
Commit Name: e753bb1b0170eb3d6fabc93311c31f4094f1cdad
Time: 2020-01-22
Author: kushalkolar@gmail.com
File Name: tslearn/tests/test_serialize_models.py
Class Name:
Method Name: test_serialize_knn_classifier


Project Name: rtavenar/tslearn
Commit Name: e753bb1b0170eb3d6fabc93311c31f4094f1cdad
Time: 2020-01-22
Author: kushalkolar@gmail.com
File Name: tslearn/tests/test_serialize_models.py
Class Name:
Method Name: test_serialize_global_alignment_kernel_kmeans