UNPKG

federer

Version:

Experiments in asynchronous federated learning and decentralized learning

27 lines 894 B
/** Options for configuring the delays on the clients. */ export declare type CoordinatorClientDelayOptions = NoDelayOptions | DelayGroupsOptions; /** Delay configuration that imposes no additional delay on the clients. */ export interface NoDelayOptions { type: "none"; } /** * Delay configuration that splits the clients into groups with different * delays. */ export interface DelayGroupsOptions { type: "delay-groups"; /** * Delay groups. The fractions must be positive and add up to 1; * the delays must be positive. */ groups: Array<{ fraction: number; delay: number; }>; } /** * Function that parses {@link CoordinatorClientDelayOptions}, checks for * invalid. */ export declare function checkClientDelayOptions(options: CoordinatorClientDelayOptions | undefined, numberClients: number): void; //# sourceMappingURL=delays.d.ts.map