Skip to content
CAI
Software that uses CAICheck a score

mccorby/FederatedAndroidTrainer

59.3

Adequate · 8 November 2026

1.6k

lines of production code

Java

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This is a federated learning application that trains machine learning models on local devices and aggregates updates via a central server. It supports multiple datasets, including Iris and MNIST, and allows configuration of model parameters and server endpoints. The system standardizes data access and model training interfaces to enable distributed gradient-based learning workflows.

Features

Add Iris classification model implementation

A new IrisModel class has been added to the application, implementing the FederatedModel interface to handle Iris dataset classification. This model constructs a multi-layer neural network using Deeplearning3j, supporting training, evaluation, and weight updates via gradients.

app/src/main/java/com/mccorby/federatedlearning/features/iris/model · high confidence

Added external configuration and diabetes dataset

The app now supports external configuration via a new \config.json\ file, allowing users to specify the machine learning model (e.g., "Iris"), the server URL for gradient transmission, the maximum number of clients, and the batch size. Additionally, a \diabetes.csv\ dataset has been added to the app's assets, enabling the application to train models on this specific dataset.

app/src · high confidence

Behavioural changes

2 commits (0 fixes) modifying model

A change to existing behaviour in model — 2 commits, 1 file.

model · medium confidence · unverified

Migrate data sources and models to the federated learning architecture

The MNIST and SumOperation features now use new \MNISTDataSource\ and \SumDataSource\ classes that implement the \FederatedDataSource\ interface, replacing the previous \DataSource\ implementations. Similarly, \MNISTModel\ and \LinearModel\ now implement \FederatedModel\, enabling the system to send gradients to a server and update local weights with remote gradients. This change restructures the codebase to support federated learning workflows by standardizing data access and model training/evaluation interfaces.

app/src/main/java/com/mccorby/federatedlearning/features/mnist, app/src/main/java/com/mccorby/federatedlearning/features/sumoperation · high confidence

Dependencies

Migrate to Federated Learning and modernize dependencies

The project has been restructured to support Federated Learning, reflected by the removal of the separate 'model' module and the renaming of the application ID to 'com.mccorby.federatedlearning'. The build configuration now explicitly defines and uses versioned dependencies for Deep Learning (DL4J, ND4J), networking (Retrofit, RxJava), and dependency injection (Dagger), replacing the previous flat file-based library management.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 59 → 59 (+0.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 73 → 73 (+0.0)
  • Architecture 96 → 95 (-1.1)
  • Maturity 86 → 88 (+2.2)
  • Readiness 36 → 36 (+0.0)
  • Security 100 → 100 (+0.0)
  • Domain Modelling 79 → 79 (+0.0)

New (1)

  • High interface indirection

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

mccorby/FederatedAndroidTrainer was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit f1daca678b219be16b1897a2e061604ec330ae48 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.