michalznalezniak / contrastive-hierarchical-clustering Goto Github PK
View Code? Open in Web Editor NEWThis is the official code for the paper Contrastive Hierarchical Clustering (ECML PKDD 2023)
This is the official code for the paper Contrastive Hierarchical Clustering (ECML PKDD 2023)
thank you for your patience.
i want to know what is the role of memory_data?
And if I want to design a customised dataset where all the data is used for training and then all the data is clustered, how should I do it?
Dear author,
Thanks for your code. I want to present the result clearly like the figure in your paper, how can I get the hierarchical labels and the corresponding probabilities? This is my email address: [email protected]. I will be very appreciated if you can response to me.
Hello sir, there seems to be a problem with your requirement.txt, I can't install the version you have in it!
Hello, I tried running the code but I get this error:
Train Epoch: [1/4] Loss: 5.3809: 100%|██████████| 195/195 [02:26<00:00, 1.34it/s]
Train Epoch: [2/4] Loss: 5.1769: 100%|██████████| 195/195 [02:31<00:00, 1.29it/s]
0%| | 0/195 [00:33<?, ?it/s]
Traceback (most recent call last):
File "/Contrastive-Hierarchical-Clustering-main/main.py", line 195, in <module>
total_loss, tree_loss_train, reg_loss_train, simclr_loss_train = train(model, train_loader, optimizer, epoch, cfg, device)
File "/Contrastive-Hierarchical-Clustering-main/main.py", line 47, in train
tree_loss_value = tree_loss(tree_output1, tree_output2, batch_size, net.masks_for_level, mean_of_probs_per_level_per_epoch, cfg.tree.tree_level, device)
File "/Contrastive-Hierarchical-Clustering-main/tree_losses.py", line 36, in tree_loss
labels = labels * ~mask_for_level
TypeError: bad operand type for unary ~: 'dict'
What is the purpose of this mask here? The mask is a dict, what is the intent?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.