cox_regression.server module

Server module for cox regression

class cox_regression.server.Server(pool, n_time_bins, max_iter=25)[source]

Bases: object

The Server class. Responsible for aggregating results of the clients. Based on the logistic regression server.

__init__(pool, n_time_bins, max_iter=25)[source]

Initializes the server.

Parameters:
  • pool (Pool) – The communication pool.

  • n_time_bins (int) – The number of time bins to use.

  • max_iter (int) – The max number of epochs

async compute_statistics()[source]

Perform server role in computing the statistics.

Return type:

None

async run(time_bins=None)[source]

Runs the entire learning process.

Parameters:

time_bins (ndarray[tuple[int, ...], dtype[floating[Any]]] | None) – Optional parameter specifying the time bins. If None, the bins will be spaced according to the _split_time_bins function.

Return type:

None