Giter Site home page Giter Site logo

Comments (5)

vaseline555 avatar vaseline555 commented on August 15, 2024

Dear @Jinfeng-Xu ,
Thank you for your kind words!

Oops, I forgot to change that part when deubgging.
It is fixed in this commit.
Please pull the latest version of this repo and try again.
And please let me know if there still exists a problem!

Thank you.
๊ณ ๋งˆ์›Œ์š”~

Best,
Adam

from federated-learning-in-pytorch.

Jinfeng-Xu avatar Jinfeng-Xu commented on August 15, 2024

Many Thanks!
But still, some bugs need to be fixed.
image

server.update() may raise an error for unexpected type

from federated-learning-in-pytorch.

vaseline555 avatar vaseline555 commented on August 15, 2024

Thank you for your report, @Jinfeng-Xu !
Could you please provide me corresponding command that causing such an error?

I presume that the error caused when you used BCELoss.
If in that case (plus if the dataset you want to use has at most 2 classes), however, you should change it into BCEWithLogitsLoss since any models provided in this repo do not have torch.nn.Sigmoid() activation in the final layer of the model (i.e., last layer of the model's classifier submodule).

FYI, it is an intended behavior even if users entered metrics requiring probability ouputs (e.g., AUROC), because it is implicitly transformed in MetricManager instance.

Hope it helps.
Thank you!

Best,
Adam

from federated-learning-in-pytorch.

Jinfeng-Xu avatar Jinfeng-Xu commented on August 15, 2024

Thank you for your guidance, @vaseline555 !

Your guess is right, it works with BCEWithLogitsLoss.
Thanks for your help!

Sincerely,
Jinfeng

from federated-learning-in-pytorch.

vaseline555 avatar vaseline555 commented on August 15, 2024

Sounds great!
Hope you have a nice Friday. ๐Ÿ˜„
(๋ถˆ๊ธˆ in Korean)

Best,
Adam

from federated-learning-in-pytorch.

Related Issues (19)

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.