View Code? Open in Web Editor
NEW
TNO PET Lab - secure Multi-Party Computation (MPC) - Protocols - Kaplan-Meier
Home Page: https://docs.pet.tno.nl/mpc/protocols/kaplan-meier
License: Apache License 2.0
protocols.kaplan_meier's People
Contributors
Stargazers
Watchers
protocols.kaplan_meier's Issues
The algorithm requires to run on two ports. It seems like it can easily be changed to using a single port by adding the following statement to the Alice
and Bob
start_protocol
method. This would require to change:
await self .send_share ()
await self .run_mpyc ()
and
await self .receive_share ()
await self .run_mpyc ()
to
await self .receive_share ()
await self .pool .shutdown ()
await self .run_mpyc ()
I tested this locally and that worked. Would it make sense to include that in the source?
The event
and time
column names are hardcoded in the Alice
class:
return self .data ["time" ].loc [self .data ["event" ].astype (bool )].nunique ()
self ._data = self .data .sort_values (
by = ["time" , "event" ], ascending = [True , False ]
)
Would it be possible to have these settable on initialization?