Commit 3f250bcd authored by Nicholas Stone Adamo's avatar Nicholas Stone Adamo
Browse files

Better docs

parent fe4dd598
No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -34,9 +34,9 @@ def train(dataset):
"""
TODO - Implement the following functions.
In each of these functions, you can use the MODEL variable which is a dictionary which has three members:
MODEL['count_of_word_by_outcome'][outcome][word] = count_of_word_in_all_documents
MODEL['num_data_points'] = number_of_documents_in_the_dataset
MODEL['count_of_data_points_with_outcome'][outcome] = number_of_documents_in_the_data_set_which_have_the_correct_outcome_as_outcome
MODEL['count_of_word_by_outcome'][outcome][word] = Total number of documents in the category 'outcome' in which this word appears
MODEL['num_data_points'] = Total number of documents in the data set
MODEL['count_of_data_points_with_outcome'][outcome] = Total number of documents in the category 'outcome'
"""
@cache
def pr_outcome(outcome : str) : # Pr(outcome)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment