Skip to content

Commit 794867b

Browse files
committed
Fix codespell errors
1 parent ae056b2 commit 794867b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cebra/solver/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def _check_indices(batch_start_idx: int, batch_end_idx: int,
8686
raise ValueError(
8787
f"The batch has length {batch_size_lenght} which "
8888
f"is smaller or equal than the required offset length {len(offset)}."
89-
f"Either choose a model with smaller offset or the batch shoud contain more samples."
89+
f"Either choose a model with smaller offset or the batch should contain more samples."
9090
)
9191

9292

@@ -511,7 +511,7 @@ def decoding(self, train_loader, valid_loader):
511511

512512
@abc.abstractmethod
513513
def _check_is_inputs_valid(self, inputs: torch.Tensor, session_id: int):
514-
"""Check that the inputs can be infered using the selected model.
514+
"""Check that the inputs can be inferred using the selected model.
515515
516516
Note: This method checks that the number of neurons in the input is
517517
similar to the input dimension to the selected model.

cebra/solver/multi_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _set_fitted_params(self, loader: cebra.data.Loader):
144144

145145
def _check_is_inputs_valid(self, inputs: torch.Tensor,
146146
session_id: Optional[int]):
147-
"""Check that the inputs can be infered using the selected model.
147+
"""Check that the inputs can be inferred using the selected model.
148148
149149
Note: This method checks that the number of neurons in the input is
150150
similar to the input dimension to the selected model.

cebra/solver/single_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _set_fitted_params(self, loader: cebra.data.Loader):
6767
self.n_features = loader.dataset.input_dimension
6868

6969
def _check_is_inputs_valid(self, inputs: torch.Tensor, session_id: int):
70-
"""Check that the inputs can be infered using the selected model.
70+
"""Check that the inputs can be inferred using the selected model.
7171
7272
Note: This method checks that the number of neurons in the input is
7373
similar to the input dimension to the selected model.

tests/test_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def test_batched_transform_multi_session(data_name, model_name, padding,
683683
n_samples = dataset._datasets[0].neural.shape[0]
684684
assert all(
685685
d.neural.shape[0] == n_samples for d in dataset._datasets
686-
), "for this set all of the sessions need ot have same number of samples."
686+
), # all sessions need to have same number of samples
687687

688688
smallest_batch_length = n_samples - batch_size
689689
offset_ = model[0].get_offset()

0 commit comments

Comments
 (0)