Explain it simpler
Training a model is like writing a new edition of a book. Publishing is putting that edition on the library shelf under a name readers ask for, like 'productModel'. Your app always asks the library for that name. If you write edition 6 but leave edition 4 on the shelf with the name, readers still get edition 4. So after retraining, you must publish the new version under the same name. If you need the model to work with no internet, you can export it, which is like giving someone their own printed copy to carry. Only small 'compact' models can be exported. Also, there are two keys: one for the workshop where you train, and one for the library where apps ask for predictions.
Tuesday afternoon at Summit Grocers, the shelf-scanning app is still missing the new oat milk cartons. Daniel spent the weekend adding 200 photos and training iteration 6, which looks excellent in the portal. But the testers in store 14 report no change at all. The product manager wants to know if the retraining failed, the store manager wants to know whether the handheld scanners can work in the walk-in freezer where there is no signal, and Daniel is quietly wondering whether he used the right key. The portal shows a shiny new iteration, so why is the app still behaving exactly the same?
A trained iteration is not yet available to your app. You make it available in one of two ways: by publishing it to a prediction resource, which serves it from Azure, or by exporting it to run somewhere else. Knowing this step explains a classic exam scenario: the model was retrained and looks better in the portal, but the app still behaves the same. Publishing and exporting are not exclusive; many solutions publish an iteration for cloud apps and export the same compact iteration for devices.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.