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()