505fcd431c6cd9ba0047e4e29da71a052d86c70e,tslearn/docs/examples/plot_shapelets.py,,,#,24

Before Change


X_test = TimeSeriesScalerMinMax().fit_transform(X_test)

// Set the number of shapelets per size as done in the original paper
shapelet_sizes = grabocka_params_to_shapelet_size_dict(n_ts=X_train.shape[0],
                                                       ts_sz=X_train.shape[1],
                                                       n_classes=len(set(y_train)),
                                                       l=0.1,

After Change


plt.figure()
plt.plot(numpy.arange(1, 201), shp_clf.model.history.history["loss"])
plt.title("Evolution of cross-entropy loss during training")
plt.xlabel("Epochs")
plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rtavenar/tslearn
Commit Name: 505fcd431c6cd9ba0047e4e29da71a052d86c70e
Time: 2019-07-11
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/docs/examples/plot_shapelets.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: f2e2aa02df60786f53f080cf58bf11698b67fc6c
Time: 2017-05-30
Author: dstansby@gmail.com
File Name: examples/text_labels_and_annotations/tex_demo.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: a8a6866532a258c949fe7f258b0da38b4691fe85
Time: 2013-08-26
Author: philippe.gervais@inria.fr
File Name: nisl/honorio_samaras.py
Class Name:
Method Name: