Skip to content

Commit

Permalink
Merge pull request cgpotts#95 from miguelusque/patch-4
Browse files Browse the repository at this point in the history
Rename method name: fit_maxent_classifier -> fit_softmax_classifier
  • Loading branch information
cgpotts authored Sep 12, 2021
2 parents c1667ee + aac299c commit bea0a1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sst_03_neural_networks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"\n",
"<img src=\"fig/distreps-as-features.png\" width=500 alt=\"distreps-as-features.png\" />\n",
"\n",
"Our model will just be `LogisticRegression`, and we'll continue with the experiment framework from the previous notebook. Here is `fit_maxent_classifier` again:"
"Our model will just be `LogisticRegression`, and we'll continue with the experiment framework from the previous notebook. Here is `fit_softmax_classifier` again:"
]
},
{
Expand All @@ -129,7 +129,7 @@
"metadata": {},
"outputs": [],
"source": [
"def fit_maxent_classifier(X, y):\n",
"def fit_softmax_classifier(X, y):\n",
" mod = LogisticRegression(\n",
" fit_intercept=True,\n",
" solver='liblinear',\n",
Expand Down Expand Up @@ -233,7 +233,7 @@
"_ = sst.experiment(\n",
" sst.train_reader(SST_HOME),\n",
" glove_phi,\n",
" fit_maxent_classifier,\n",
" fit_softmax_classifier,\n",
" assess_dataframes=sst.dev_reader(SST_HOME),\n",
" vectorize=False) # Tell `experiment` that we already have our feature vectors."
]
Expand Down Expand Up @@ -323,7 +323,7 @@
"_ = sst.experiment(\n",
" sst.train_reader(SST_HOME),\n",
" yelp_phi,\n",
" fit_maxent_classifier,\n",
" fit_softmax_classifier,\n",
" assess_dataframes=sst.dev_reader(SST_HOME),\n",
" vectorize=False) # Tell `experiment` that we already have our feature vectors."
]
Expand Down

0 comments on commit bea0a1d

Please sign in to comment.