Created
January 2, 2019 22:04
-
-
Save yatszhash/04414224c78d38e7378e522f93d39e4c to your computer and use it in GitHub Desktop.
CRF再入門(推論編) ref: https://qiita.com/daimonji-bucket/items/2e99db1ade93c52df17f
This file contains 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
X = \left[ | |
\begin{array}{rrr} | |
x_{01} &...& x_{0k} & ... & x_{0K} \\ | |
... \\ | |
x_{t1} &...& x_{tk} & ... & x_{tK} \\ | |
... \\ | |
x_{T1} &...& x_{Tk} & ... & x_{TK} | |
\end{array} | |
\right] |
This file contains 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
softmax(b_{k}) = \frac{\exp(b_{k})}{\sum^{n}_{i=1}exp(b_{i})} |
This file contains 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
\hat{Y} = \underset{Y}{arg~max}P(Y|X)\\ | |
= \underset{Y}{arg~max}(softmax(W\cdot\phi(X, Y))) \\ | |
= \underset{Y}{arg~max}(W\cdot\phi(X, Y)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment