Skip to content

Commit 08b8d8b

Browse files
author
Aleksei Silvestrov
committed
neg formula sign ix
1 parent abf09c5 commit 08b8d8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

task2_word_embeddings.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,15 @@
220220
"source": [
221221
"**Negative Sampling** работает следующим образом - мы **максимизируем сумму вероятностей двух событий**: \n",
222222
"\n",
223-
"* \"этот пример центрального слова вместе с контекстными словами взят **из тренировочной выборки**\": $$ P(y=1 | CenterW_i; CtxW_j) = sigmoid(w_i \\cdot d_j) = \\frac{1}{1+e^{w_i \\cdot d_j}} $$\n",
223+
"* \"этот пример центрального слова вместе с контекстными словами взят **из тренировочной выборки**\": $$ P(y=1 | CenterW_i; CtxW_j) = sigmoid(w_i \\cdot d_j) = \\frac{1}{1+e^{-w_i \\cdot d_j}} $$\n",
224224
"\n",
225225
"$$ \\\\ $$\n",
226226
"\n",
227-
"* \"этот пример центрального слова вместе со случайми контекстными словами **выдуман** \": $$ P(y=0 | CenterW_i; CtxW_{noise}) = 1 - P(y=1 | CenterW_i; CtxW_{noise}) = \\frac{1}{1+e^{-(w_i \\cdot d_{noise})}} $$\n",
227+
"* \"этот пример центрального слова вместе со случайми контекстными словами **выдуман** \": $$ P(y=0 | CenterW_i; CtxW_{noise}) = 1 - P(y=1 | CenterW_i; CtxW_{noise}) = \\frac{1}{1+e^{w_i \\cdot d_{noise}}} $$\n",
228228
"\n",
229229
"$$ \\\\ $$\n",
230230
"\n",
231-
"$$ NEG(CtxW_j, CenterW_i) = log(\\frac{1}{1+e^{w_i \\cdot d_j}}) + \\sum_{l=1}^{k}log(\\frac{1}{1+e^{-(w_i \\cdot d_{noise_l})}}) \\rightarrow \\max_{W,D} $$"
231+
"$$ NEG(CtxW_j, CenterW_i) = log(\\frac{1}{1+e^{-w_i \\cdot d_j}}) + \\sum_{l=1}^{k}log(\\frac{1}{1+e^{w_i \\cdot d_{noise_l}}}) \\rightarrow \\max_{W,D} $$"
232232
]
233233
},
234234
{
@@ -689,7 +689,7 @@
689689
"name": "python",
690690
"nbconvert_exporter": "python",
691691
"pygments_lexer": "ipython3",
692-
"version": "3.6.8"
692+
"version": "3.6.10"
693693
},
694694
"latex_envs": {
695695
"LaTeX_envs_menu_present": true,

0 commit comments

Comments
 (0)