In this section, we will implement the preprocessing functionality required to transform our raw user input into something the model is expecting. We will build up this functionality in a playground project before migrating it across to our project in the next section.
If you haven't done so, pull down the latest code from the accompanying repository https://github.com/PacktPublishing/Machine-Learning-with-Core-ML. Once downloaded, navigate to the directory Chapter8/Start/
and open the playground project ExploringQuickDrawData.playground
. Once loaded, you will see the playground for this chapter, as shown:
The playground includes a few samples of the raw Quick, Draw! dataset, a single simplified extract, as well as the complied model and supporting classes we created in the previous chapter to represent a sketch (Stroke.swift
, Sketch.swift
) and render it (SketchView.swift
). Our goal for this section will be to better understand the data and the preprocessing...