Skip to content

How to retrieve information about ScatterAndGather rounds within PTLearner? #2342

Closed Answered by SYangster
elchiodo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi thanks for reaching out, yes there is a way to obtain the round number from within the PTLearner. It was a good idea to try looking at the FLContext, however if you see ScatterAndGather:221 the AppConstants.CURRENT_ROUND is set as a private, meaning that this property is only visible to local components. Since the ScatterAndGather workflow is server-controlled, the PTLearner on the client will not be able to access this.

Instead we can look at ScatterAndGather:226 where the current round is set as a header on the shareable. This can be accessed from within PTLearner: current_round = shareable.get_header(AppConstants.CURRENT_ROUND)

Also do you mind elaborating on which validation metric…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SYangster
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants