alibaba / FederatedScope

An easy-to-use federated learning platform
https://www.federatedscope.io
Apache License 2.0
1.26k stars 206 forks source link

How can i get the output result? #764

Open junzlovegood opened 5 months ago

junzlovegood commented 5 months ago

I want to obtain the model's predicted output results for each input data (eval result). How should I modify the code?

rayrayraykk commented 5 months ago

You can get it from trainer.ctx or https://github.com/alibaba/FederatedScope/blob/480b67de851df2fa02b7cc2189f1803d947998d7/federatedscope/core/monitors/metric_calculator.py#L93