TrainingUpdate

data class TrainingUpdate(val sampleCount: Long, val weights: List<Double>)

One peer's decoded training result: how many examples it trained on and the updated weight vector. Bridges a kernel run (or ReferenceTrainer.step) to FedAvg.

Constructors

Link copied to clipboard
constructor(sampleCount: Long, weights: List<Double>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun toContribution(peer: ReplicaId, epoch: Long = 1): FedAvg

This update as a single-peer FedAvg contribution for peer at epoch.