Giter Site home page Giter Site logo

Problem in utils.py about cglb HOT 2 CLOSED

Jillian555 avatar Jillian555 commented on July 30, 2024
Problem in utils.py

from cglb.

Comments (2)

QueuQ avatar QueuQ commented on July 30, 2024

Thanks for your interest!

We didn't quite understand your question. But we could try to make some clarification to see whether it resolves your question.

The cls_balance here indicates whether we want to weigh all classes equally (cls_balance=True) or not. If we set it as True, we weigh all classes equally, and the accuracy is averaged over all classes regardless of the size of each class. In this case, the mask parameter is not used in the accuracy function. Instead, the ids_per_class is used to provide the ids of the nodes in each class.

When we set is as False, then the accuracy is averaged over all nodes, i.e. larger classes would dominate the result. In this case, we do not need the ids_per_cls. Instead, the mask parameter is used to indicate which nodes are testing nodes. You are correct on this, After the mask parameter is set, the sample for testing is selected. That is what we want to do.

from cglb.

Jillian555 avatar Jillian555 commented on July 30, 2024

Thanks for your answering!

from cglb.

Related Issues (20)

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.