How it works...

The UpdateClassifier function takes the example input values and stores them. This is the first function to be called. The NaiveProbabilities function is the one responsible for computing the probabilities for the prediction function to work. Finally, the Predict function is the second one to be called by us to get the results of the classification.

Get Unity 2018 Artificial Intelligence Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.