Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dendrogram Feature #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Dendrogram Feature #18

wants to merge 1 commit into from

Conversation

anshi05
Copy link

@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
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
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