Skip to content

Commit

Permalink
Minor HW corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
cgpotts committed Apr 17, 2021
1 parent 9913da9 commit 3b7cacc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hw_sentiment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@
"outputs": [],
"source": [
"def predict_one_rnn(text):\n",
" # Singleton list of feature dicts:\n",
" feats = [rnn_experiment['phi'](text)]\n",
" # List of tokenized examples:\n",
" X = [rnn_experiment['phi'](text)]\n",
" # Standard `predict` step on a list of lists of str:\n",
" preds = rnn_experiment['model'].predict(X)\n",
" # Be sure to return the only member of the predictions,\n",
Expand Down
2 changes: 1 addition & 1 deletion hw_wordrelatedness.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"\n",
"Word similarity and relatedness datasets have long been used to evaluate distributed representations. This notebook provides code for conducting such analyses with a new word relatedness datasets. It consists of word pairs, each with an associated human-annotated relatedness score. \n",
"\n",
"The evaluation metric for each dataset is the [Spearman correlation coefficient $\\rho$](https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient) between the annotated scores and your distances, as is standard in the literature. Since the train and test datasets contain both similarity and relatedness datasets, we will also report separate scores for each of these sub-tasks as well as an overall score.\n",
"The evaluation metric for each dataset is the [Spearman correlation coefficient $\\rho$](https://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient) between the annotated scores and your distances, as is standard in the literature.\n",
"\n",
"This homework ([questions at the bottom of this notebook](#Homework-questions)) asks you to write code that uses the count matrices in `data/vsmdata` to create and evaluate some baseline models. The final question asks you to create your own original system for this task, using any data you wish. This accounts for 9 of the 10 points for this assignment.\n",
"\n",
Expand Down

0 comments on commit 3b7cacc

Please sign in to comment.