Skip to content

Commit

Permalink
fixed points - code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JustGlowing committed Aug 22, 2024
1 parent 18074c0 commit b8cc3fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions minisom.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ def get_decay_rate(iteration_index, data_len):
if fixed_points:
for k in fixed_points.keys():
if not isinstance(k, int):
raise TypeError(f'fixed points indexes must ' +
'be integers.')
raise TypeError(f'fixed points indexes must ' +
'be integers.')
if k >= len(data) or k < 0:
raise ValueError(f'an index of a fixed point ' +
'cannot be grater than len(data)' +
Expand Down Expand Up @@ -953,7 +953,6 @@ def test_train_fixed_points(self):
som.train(data, 10, fixed_points={-1: (0, 0)})
with self.assertRaises(TypeError):
som.train(data, 10, fixed_points={'oops': (0, 0)})


def test_use_epochs_variables(self):
len_data = 100000
Expand Down

0 comments on commit b8cc3fa

Please sign in to comment.