Test #1: Build Naïve Bayes classifiers from give rock-paper-scissor transcripts using numpy

 

a)      prior is a 1-D numpy array storing the probability distribution of the agent playing rock or paper or scissor over all the matches recorded in the entire transcript,

b)     agentPrev1 is a 2-D numpy array storing the probability distributions of the agent playing rock or paper or scissor in the previous match given that the agent plays rock or paper or scissor respectively in the current match,

c)      agentPrev2 is a 2-D numpy array storing the probability distributions of the agent playing rock or paper or scissor 2 matches ago given that the agent plays rock or paper or scissor respectively in the current match,

d)     userPrev1 is a 2-D numpy array storing the probability distributions of the user playing rock or paper or scissor in the previous match given that the agent plays rock or paper or scissor respectively in the current match, and

e)      userPrev2 is a 2-D numpy array storing the probability distributions of the user playing rock or paper or scissor 2 matches ago given that the agent plays rock or paper or scissor respectively in the current match.

Note that you can accomplish this task conveniently based on similar things what you learned and did for Lab 4 and Lab 5 earlier.