#NEWLINE# def reset( self , init_type = 'uniform' ) : #NEWLINE# #INDENT# '\n\t\tResets the 3 arrays using the given initialization method.\n\t\t\n\t\tWipes out the old arrays. You can use this method to change the shape\n\t\tof the arrays by first changing num_states and/or num_symbols, and then\n\t\tcalling this method.\n\t\t\n\t\tCurrently supported initialization methods:\n\t\tuniform\t\tprior, transition, and emission probabilities are all \n\t\t\t\t\tuniform (default)\n\t\t' #NEWLINE# if ( init_type == 'uniform' ) : #NEWLINE# #INDENT# self . prior = ( numpy . ones ( self . num_states , dtype = self . precision ) * ( 1.0 / self . num_states ) ) #NEWLINE# self . transition_matrix = ( numpy . ones ( ( self . num_states , self . num_states ) , dtype = self . precision ) * ( 1.0 / self . num_states ) ) #NEWLINE# self . emission_matrix = ( numpy . ones ( ( self . num_states , self . num_symbols ) , dtype = self . precision ) * ( 1.0 / self . num_symbols ) )