It's a fairly common complaint that after enabling github two factor authentication that command line utilities
stop working. The underlying issue is command line utilities send your username and password with each request
to github, using two factor authentication disables github from accepting just your username and password, so your
command line utilities such as git appear to stop working. Github will still accept a personal access token instead
of your password however.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Viterbi algorithm for finding hidden relationships | |
| function Viterbi(data) { | |
| var V = [{}]; | |
| var path = {}; | |
| // Initialize base cases (t == 0) | |
| for(var i=0;i<data.states.length;i++) { | |
| var state = data.states[i]; | |
| V[0][state] = data.start_probability[state] * data.emission_probability[state][data.observations[0]]; | |
| path[state] = [state]; |