Federated Learning project for 02460 Advanced Machine Learning
/pingreturns basic device information such as hostname, commit of the repository and commit of the repository on the device./logsreturns the logfile content./telemetryreturns telemetry such as CPU and memory usage./commandis used to issue system commands to the Pi. This effectively over-the-air updating by issuinggit pullfollowed byreboot./configuretakes an integernumas argument and sets the local static IP and hostname accordingly.
Three training endpoints in API.
/configure-training: Receives configuration for training and creates a shared model. Also enables lock./train: Receives training indices, data augmentation instructions, and state dict. Trains and returns new model state dict./end-training: Clears all clients, deletes model, and disables lock.