// We will plot our distances in a 2D space
distances = shp_clf.transform(X_train).reshape((-1, 2))
weights, biases = shp_clf.model_.layers[-1].get_weights()
// Create a grid for our two shapelets on the left and distances on the right
viridis = cm.get_cmap("viridis", 4)
After Change
// We will plot our distances in a 2D space
distances = shp_clf.transform(X_train).reshape((-1, 2))
weights, biases = shp_clf.get_weights("classification")
// Create a grid for our two shapelets on the left and distances on the right
viridis = cm.get_cmap("viridis", 4)
fig = plt.figure(constrained_layout=True)