Git Product home page Git Product logo

contrastive-hierarchical-clustering's People

Contributors

michalznalezniak avatar xyz321cod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

contrastive-hierarchical-clustering's Issues

About customised dataset

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?

Mask typer error

https://github.com/MichalZnalezniak/Contrastive-Hierarchical-Clustering/blob/2c418fcc763081e89073d83d648308d277b1fd10/tree_losses.py#L31C1-L31C28

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.