Skip to content

Add Dendrogram Feature #18

Open
anshi05 wants to merge 1 commit into
lpelabs:mainfrom
anshi05:dendogram
Open

Add Dendrogram Feature #18
anshi05 wants to merge 1 commit into
lpelabs:mainfrom
anshi05:dendogram

Conversation

@anshi05
Copy link
Copy Markdown

@anshi05 anshi05 commented Aug 7, 2024

Title: Dendrogram Feature - Add Dendrogram Visualization Feature for Hierarchical Clustering

Description:

  • Implemented hierarchical clustering using scipy with 'complete' linkage and 'cosine' distance metric.
  • Added dendrogram visualization using Matplotlib with improved x-axis labels and enhanced UI for better readability.
  • This PR addresses issue Dendrogram Feature #3

Checklist:

☑ I have read and followed the Contributing Guide.
☑ My code follows the project's style guide.
☑ I have added a clear and descriptive commit message.

Dendrogram image:

open issue

@anshi05 anshi05 changed the title Dendrogram Feature - Add Dendrogram Visualization Feature for Hierarchical Clustering Add Dendrogram Feature Aug 7, 2024
@HridayM25
Copy link
Copy Markdown
Collaborator

HridayM25 commented Aug 8, 2024

The x-axis ticks should be the names of the files we are using. You can also try using plotly, which makes interactive and more appealing graphs. Here is the reference : https://plotly.com/python/dendrogram/
Also, why this?

sample_embeddings = [np.random.rand(1, 128) for _ in range(10)]
reshaped_embeddings = convert_embeddings(sample_embeddings)
clusters = clustering(reshaped_embeddings)

You need to use the clustering of the files here itself.

@anshi05
Copy link
Copy Markdown
Author

anshi05 commented Aug 9, 2024

Ok I'll change it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants