[O] A3 Remove todos
This commit is contained in:
@@ -17,10 +17,6 @@
|
||||
\item[1.]
|
||||
\begin{enumerate}
|
||||
\item[(a)]
|
||||
TODO: Complete the table below (you will need to add more rows).
|
||||
|
||||
You may find this tutorial useful: https://www.overleaf.com/learn/latex/Tables.
|
||||
|
||||
\begin{tabular}{|l|l|l|l|}
|
||||
\hline
|
||||
Iteration & \verb|word| & \verb|words| & \verb|word_frequencies|\\
|
||||
@@ -37,7 +33,9 @@
|
||||
Including a specific example as the doctest's expected output when a function is random isn't a good idea because the function's output will be different from the expected output each time it is executed. Since the doctest only verifies if the actual output matches the expected output, specifying a single random outcome as the expected output among many other possibilities will likely produce an error when running the test.
|
||||
|
||||
\item[(c)]
|
||||
For example, you can use $\texttt{words = \{'Hello': 1\}}$ as the words dictionary. In this case, \texttt{generate\_text\_uniform(words, 5)} has only one possible outcome, which is \texttt{'Hello Hello Hello Hello Hello'}, so we can use that as our statement and expected output in the doctest.
|
||||
For example, you can use $\texttt{words = \{'Hello': 1\}}$ as the words dictionary. In this case, \\
|
||||
\texttt{generate\_text\_uniform(words, 5)} has only one possible outcome, which is \\
|
||||
\texttt{'Hello Hello Hello Hello Hello'}, so we can use that as our statement and expected output in the doctest.
|
||||
\end{enumerate}
|
||||
|
||||
\item[2.]
|
||||
@@ -59,8 +57,6 @@ This question is not to be handed in.
|
||||
One-word context model:
|
||||
|
||||
\begin{verbatim}
|
||||
# TODO: Write your one-word context model here as a Python value.
|
||||
# Write each key-value pair on a separate line, like on the assignment handout.
|
||||
{
|
||||
'Love': ['is', 'is'],
|
||||
'is': ['patient.', 'kind.', 'not'],
|
||||
|
||||
Reference in New Issue
Block a user