refactor: use factories to create training data
I suggest these changes to further split application logic (what data to load, how to prepare it, etc.) from the domain logic (the training data class and its data validation).
I suggest these changes to further split application logic (what data to load, how to prepare it, etc.) from the domain logic (the training data class and its data validation).