Script for Plotting the Prostate Validation Curves #339
-
Hi, I am currently working on the prostate example. I ran all the experiment in a POC workspace and want to generate the validation curves you show in the results. I tried modifying the plotting script "plot_tensorboard_events.py" which you provided in the cifar10 example and tailor it to plot the prostate results (the 4 figures shown for the 4 clients: I2CVB, MSD, NCI_ISBI_3T, & NCI_ISBI_Dx for the configurations: central, fedavg, fedprox, & ditto) but unfortunately I could not implement that correctly. Could you please provide the script you used to plot the results in the prostate example? Thank you again! |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 1 reply
-
@ZiyueXu77 do we have a similar script for prostate as for the cifar10 example? |
Beta Was this translation helpful? Give feedback.
-
@ZiyueXu77 @holgerroth Could you support on this please? |
Beta Was this translation helpful? Give feedback.
-
Hi @atnassar, thanks for the question! I do have a similar script for prostate, but for now it relies on my other two customized scripts moving/reorganizing the tensorboard records from our computing cluster to local folder. You will need some modifications to assign the correct path to the folders.
|
Beta Was this translation helpful? Give feedback.
-
Thank you @ZiyueXu77 ! The folder structure following the steps in the prostate example is as follows: The root: ./examples/prostate/workspace_prostate/ In the "wokspace_prostate" folder I have the following 7 folders: server, admin, client_I2CVB, client_MSD, client_NCI_ISBI_Dx, client_NCI_ISBI_3T, client_All. The 4 run folders: run_1, run_2, run_3, run_4 that include the events files for the 4 experiments: Central, Fedavg, Fedprox, Ditto, respectively are showing in the server and clients folders as follows: server: run_1, run_2, run_3, run_4 Could you just advise what would be the required modifications in this context? |
Beta Was this translation helpful? Give feedback.
-
try making the follow changes (didn't test it myself, could have some remaining issues, print the path out and see if it aligns with your folder structure)
to
|
Beta Was this translation helpful? Give feedback.
-
@ZiyueXu77 I got the following error: |
Beta Was this translation helpful? Give feedback.
-
could you check where the "events.*" files are located, and also check how many tb record? this script works for 1 tb record only |
Beta Was this translation helpful? Give feedback.
-
@ZiyueXu77 I am not sure what a tb is and how to check the number of tb records I have? The events files are located in the folders "app_client_" under the "run_". server: run_1, run_2, run_3, run_4 For e.g., the events files for the central experiment are shown under the following routs: similarly for the other experiments: |
Beta Was this translation helpful? Give feedback.
-
@atnassar I see, then try this |
Beta Was this translation helpful? Give feedback.
-
@ZiyueXu77 I am getting the same error: Traceback (most recent call last): I believe the part where to append results from multiple events files to a json file similar to the cifar10 plotting script is missing here. Here in the prostate example there are 4 figures, each figure shows 4 curves (central, fedavg, fedprox, ditto) for a client. So, there should be a way to add more than one events file to get that figures. |
Beta Was this translation helpful? Give feedback.
-
could you add
`print(eventfile)`
below the line? One run should have only 1 tensorboard event file.
…On Tue, Mar 22, 2022 at 11:59 AM atnassar ***@***.***> wrote:
@ZiyueXu77 <https://github.com/ZiyueXu77> I am getting the same error:
Traceback (most recent call last):
File "figs/plot_tensorboard_events_prostate1.py", line 116, in
main()
File "figs/plot_tensorboard_events_prostate1.py", line 102, in main
assert len(eventfile) == 1, "No unique event file found!"
AssertionError: No unique event file found!
I believe the part where to append results from multiple events files to a
json file similar to the cifar10 plotting script is missing here. Here in
the prostate example there are 4 figures, each figure shows 4 curves
(central, fedavg, fedprox, ditto) for a client. So, there should be a way
to add more than one events file to get that figures.
—
Reply to this email directly, view it on GitHub
<#319 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARDWATZRM62LWUU43CAB43LVBHU57ANCNFSM5Q73BR3Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you @ZiyueXu77 , I really appreciate your support! I resolved the issue and it is working now. I have another question, that need your kind support, about loading the trained local models at the clients and the global model to test them on new testing dataset, that need your usual support. |
Beta Was this translation helpful? Give feedback.
-
@atnassar, @ZiyueXu77 I closed this issue #319 and moved to discussions. |
Beta Was this translation helpful? Give feedback.
@atnassar, @ZiyueXu77 I closed this issue #319 and moved to discussions.