logistic_regression.server module

Server module for logistic regression

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

Bases: object

The Server class. Responsible for aggregating results of the clients.

__init__(pool, max_iter=25)[source]

Initializes the server.

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

  • max_iter (int) – The max number of epochs

async compute_standard_error()[source]

Compute the standard error for the clients.

Return type:

None

async compute_statistics()[source]

Help in computing the statistics for the clients. At this moment, the server is only needed in calculating the standard error. This function is added to the same function can be called on both client and server.

Return type:

None

async run()[source]

Runs the entire learning process.

Return type:

None