Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanDeveloperz committed Mar 9, 2025
1 parent 6cb7d79 commit 68860e6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
"# Visualize the clustering results\n",
"plt.figure(figsize=(10, 6))\n",
"for label in np.unique(labels):\n",
<<<<<<< HEAD
" cluster_data = X[labels == label] # Ensure correct slicing\n",
" plt.plot(np.mean(cluster_data, axis=0), label=f\"Cluster {label}\", linewidth=2)\n",
"\n",
Expand All @@ -134,15 +133,13 @@
"plt.ylabel(\"Mean Value\")\n",
"plt.legend(loc=\"upper right\", fontsize=\"small\", ncol=2)\n",
"plt.grid(True)\n",
"plt.show()\n"
=======
"plt.show()\n",
" plt.plot(\n",
" np.mean(X[labels == label], axis=0), label=f\"Cluster {label}\"\n",
" ) # Fix indexing\n",
"plt.title(\"Hierarchical Clustering with DTW Distance\")\n",
"plt.legend()\n",
"plt.show()"
>>>>>>> fb45d2921c7f2c8ca58b871275140d14e02c6956
]
},
{
Expand Down

0 comments on commit 68860e6

Please sign in to comment.