text: = [6] # Six states , single factor 
  
  = [2] # Two actions , single factor 
  # Length of policies 
  
  # Generate uniform templates for matrices and vectors of the generative model 
  A, B, C, D, E = create_matrix_templates ( states , observations , controls , policy_length ) 
  (cid:6)  (cid:5) 
  
  The**A**object generated here is a one-dimensional vector containing a uniform 5 × 6 matrix 
  (six states and five observations). The**B**object is a one-dimensional vector containing 
  a uniform 6 × 6 × 2 array (six states and two actions). The**C**,**D**and**E**objects are one- 
  dimensional vectors, each containing uniform vectors with their corresponding sizes. We 
  can now modify these to supply the agent with more informative priors over observations, 
  initial states and policies. Here, we performed this using the onehot function: 
  (cid:7)  (cid:4) 
  
  # We make C take the following form : [0 , 0 , 0, 0 , 1] 
  C[1] = onehot (5,5)  # Initialize the single element of the C object with a one - hot vector 