Migrate CIFAR-10 example splitters to nvflare.utils.data.partition #5760
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.66) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.66 · 364 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.353
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.066
Real PR Conversation Timeline
1 comments
"Review active on #5760"
general
weight: 0.35
akshat-lakhera
Part of #5265
Description
I migrated the duplicated CIFAR-10 Dirichlet splitters across the PyTorch, TensorFlow, Collab, Job API, self-paced tutorial, and Auto-FL research examples onto dirichlet_label_partition from nvflare.utils.data.partition (added in PR #5503). Each example keeps its dataset loading, site-.npy export format, and thin wrapper API (split_and_save, Cifar10DataSplitter, cifar10_split, create_data_splits) so existing job scripts continue working without changes.
Main details from review of PR #5503:
Types of changes
Testing
Risk
Low risk to existing workflows. The partitioning algorithm is unchanged from nvflare.utils.data.partition, and because default_rng produces different index sequences than legacy global np.random, summary.txt partitioner checks ensure older cached site-*.npy directories are regenerated cleanly rather than mixed across versions.
PTAL @holgerroth