Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • O OLD Documentation
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Departamento de Informática
  • Research
  • TaRDISTaRDIS
  • ToolkitToolkit
  • OLD Documentation
  • Wiki
  • Tardis apis
  • Artificial Intelligence and Machine Learning APIs

Artificial Intelligence and Machine Learning APIs · Changes

Page history
Update Artificial Intelligence and Machine Learning APIs authored Aug 26, 2025 by Miroslav Popovic's avatar Miroslav Popovic
Hide whitespace changes
Inline Side-by-side
TaRDIS-APIs/Artificial-Intelligence-and-Machine-Learning-APIs.md
View page @ 0036198b
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
### 1\. Python and MicroPython Test Beds for Federated Learning Algorithms APIs ### 1\. Python and MicroPython Test Beds for Federated Learning Algorithms APIs
The Python Test Bed for Federated Learning Algorithms (PTB-FLA) API is provided by the `PtbFla` class in the `ptbfla` module, whereas the MicroPython Test Bed for Federated Learning Algorithms (MPT-FLA) API is provided by the `PtbFla` class in the `mp_async_ptbfla` module. (Note: both classes have the same name to lighten porting legacy applications from PTB-FLA to MPT-FLA.) Both APIs include a constructor, two generic Federated Learning Algorithms (FLAs), the TDM (Time Division Multiplexing) peer data exchange algorithm, and a destructor. The MPT-FLA API also includes the `start` method. (Note: all the MPT-FLA API methods, except the constructor and the destructor, are Python asyncio coroutines, so they should not be called as functions but must be awaited using the `await` keyword.) Below are the details of each component and their respective arguments. The Python Test Bed for Federated Learning Algorithms (PTB-FLA) API is provided by the `PtbFla` class in the `ptbfla` module, whereas the MicroPython Test Bed for Federated Learning Algorithms (MPT-FLA) API is provided by the `PtbFla` class in the `mp_async_ptbfla` module. (Note: both classes have the same name to lighten porting legacy applications from PTB-FLA to MPT-FLA.) Both APIs include a constructor, two generic Federated Learning Algorithms (FLAs), two generic algorithms for TDM (Time Division Multiplexing) communication i.e., peer data exchange, and a destructor. The MPT-FLA API also includes the `start` method. (Note: all the MPT-FLA API methods, except the constructor and the destructor, are Python asyncio coroutines, so they should not be called as functions but must be awaited using the `await` keyword.) Below are the details of each component and their respective arguments.
#### Class and Methods in the `ptbfla` module (PTB-FLA API) #### Class and Methods in the `ptbfla` module (PTB-FLA API)
...@@ -86,7 +86,7 @@ Data used by the two generic FLAs (`ldata` and `pdata`) is application-specific. ...@@ -86,7 +86,7 @@ Data used by the two generic FLAs (`ldata` and `pdata`) is application-specific.
#### Formalization and Verification #### Formalization and Verification
Both generic FLAs (i.e., `fl_centralized` and `fl_decentralized` methods) have been formalized using CSP (Communicating Sequential Process) calculus and verified using the model checker PAT (Process Analysis Toolkit). Two key properties were checked: Both generic FLAs (i.e., fl_centralized and fl_decentralized methods) and both generic algorithms for TDM communication (i.e., get1Meas and getMeas) have been formalized using CSP (Communicating Sequential Process) calculus and verified using the model checker PAT (Process Analysis Toolkit). Two key properties were checked:
- **Deadlock Freedom (Safety):** Ensures that the system will not reach a state where no progress is possible. - **Deadlock Freedom (Safety):** Ensures that the system will not reach a state where no progress is possible.
- **Termination (Liveness):** Ensures that the system will eventually complete its tasks. - **Termination (Liveness):** Ensures that the system will eventually complete its tasks.
......
Clone repository
  • (Sec)Regrada
  • CryptoChoreo
  • DCR Choreographies
  • IFChannel
  • JoinActors
  • PSPSP
  • Scribble
  • TaRDIS APIs
    • Analysis and Verification Facilities
    • Artificial Intelligence and Machine Learning APIs
    • Core TaRDIS APIs
    • Data Management and Distribution Primitives
      • Decentralised Data Management and Replication APIs
      • Decentralised Membership and Communication APIs
      • Decentralised Monitoring and Reconfiguration APIs
View All Pages