Skip to content

Commit

Permalink
Rename models.CBOW to ModelCBOW class
Browse files Browse the repository at this point in the history
  • Loading branch information
sindre0830 committed Oct 15, 2023
1 parent c02cecb commit 231387b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/architechtures/cbow.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run() -> None:
validation_dataloader.build(vocabulary)
# fit model and get embeddings
utils.print_divider()
model = models.CBOW(config.device, config.vocabulary_size, config.embedding_size, vocabulary.padding_index)
model = models.ModelCBOW(config.device, config.vocabulary_size, config.embedding_size, vocabulary.padding_index)
embeddings = model.get_embeddings()
utils.print_divider()
# evaluate embeddings
Expand Down
2 changes: 1 addition & 1 deletion source/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np


class CBOW(torch.nn.Module):
class ModelCBOW(torch.nn.Module):
def __init__(
self,
device: str,
Expand Down

0 comments on commit 231387b

Please sign in to comment.