~/talk

Lessons Learned Using Machine Learning in Java

Talkat DevDays Europe 2024 · 2024-05-20..05-24· [machine-learning]
slides:none on file

Builds a Java image classifier for Lego using ResNet-50 and the Deep Java Library backed by MXNet and TensorFlow, trains with generated plus real photos, and applies transfer learning and data augmentation. Reports concrete numbers: training hit ~81% accuracy while held‑out validation fell to ~56%, zooming synthetic renders raised accuracy (~80% vs 65%), and adding real images plus frame averaging pushed results into the high tens of percent range. Includes a physical conveyor camera sorter that ultimately works.

AI-written summary · about

  1. 0:00Introduction to machine learning in Java
  2. 1:22Java vs Python for ML
  3. 3:28Java ML frameworks
  4. 5:38Java vs Python performance
  5. 6:21Dog vs muffin exercise
  6. 8:07Building dog/muffin dataset
  7. 11:36Data augmentation for images
  8. 12:18Setting up Java ML project
  9. 14:27Batch size in training
  10. 15:29Pre-trained model selection
  11. 17:15Model accuracy & loss
  12. 19:24Reproducibility in training
  13. 20:29Save/load trained models
  14. 21:36Using model for predictions
  15. 23:00Early stopping in training
  16. 24:52Learning rates explained
  17. 26:17Transfer learning techniques
  18. 27:41Hibernate Criteria API
  19. 28:24Python-Java ML integration
  20. 29:47ML for Lego sorting
  21. 31:11Generating Lego images
  22. 32:15Zooming vs real-size images
  23. 33:20Training 100 Lego categories
  24. 34:24Confusion matrix analysis
  25. 35:52Improving accuracy with real images
  26. 37:41Adjusting contrast & grayscale
  27. 39:12Adding real images to dataset
  28. 40:16Key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.