Skip to content

Commit

Permalink
Align assignment files with solutions (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkeilbach authored Oct 21, 2024
1 parent 4777f91 commit 7d8e09e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
.idea/
.vscode/

# assignment solutions
*_private.py
*_private.ipynb

# local files
local/

Expand Down
4 changes: 2 additions & 2 deletions notebooks/minimum_edit_distance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
]
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": ".venv",
"language": "python",
"name": "python3"
},
Expand All @@ -756,7 +756,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.10.14"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions src/htwgnlp/naive_bayes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class NaiveBayes:
Attributes:
word_probabilities (pd.DataFrame): the word probabilities per class, None before training
df_freqs (pd.DataFrame): the word frequencies per class, None before training
log_ratios (pd.Series): the log ratios of the word probabilities, None before training
logprior (float): the logprior of the model, 0 before training
df_freqs (pd.DataFrame): the word frequencies per class, None before training. The index of the DataFrame is the vocabulary.
log_ratios (pd.Series): the log ratios of the word probabilities, None before training. The index of the Series is the vocabulary.
logprior (float): the logprior of the model, 0 before training. The index of the Series is the vocabulary.
alpha (float): the smoothing parameter of the model
"""

Expand Down

0 comments on commit 7d8e09e

Please sign in to comment.