Python : Data Structure to hold transition probabilities HMM -
currently have designed 2d matrix :- transitionprobabilities = [[0 x in range(w)] y in range(h)] store probabilities. updating values of each , every row,col in matrix after encountering state transition. ex :- if encounter noun @ start of sentence change initial probability new probability. efficient data structure example performing such computations , create transition matrix in python ?
the fastest , used library matrix computations in python numpy (as far concerned).
Comments
Post a Comment