MachineLearningMastery.com Follow Dataclasses for Structured Application Data Scalar defaults work the way you'd expect, and batch_size: int = 500 is all you need. https://machinelearningmastery.com/dataclasses-for-structured-application-data/ machinelearningmastery.com