CreateML Tutorial for iOS: Creating a Customized Image Filter using Style Transfer |

Style Transfer is a machine learning technique. Through this, you can transform any given image stylized as another! In this tutorial, you’ll learn how to leverage Apple’s ML Frameworks to achieve this on your iOS device.

This is a companion discussion topic for the original entry at

Hi there! Thanks for the article. I have a question about the MLModelTrainer enum. Why it isn’t a struct instead? Is there a particular reason about it?

@frostra1n Thanks for writing and hope you found the article useful!
To your question, no, there is no strong reason to not use a struct here. However, as a best practice, we use enums when there are no stored properties. In this way we can also avoid creating instances and use static methods.