mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
bad910e71c
commit
930c4d463f
|
@ -44,7 +44,7 @@ class PPM:
|
|||
self.update_model(context, symbol)
|
||||
# Encode the symbol based on the current context
|
||||
compressed_output.append(self.encode_symbol(context, symbol))
|
||||
# Update the context by appending the symbol,
|
||||
# Update the context by appending the symbol,
|
||||
# keeping it within the specified order
|
||||
context = (context + symbol)[-self.order :] # Keep the context within order
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user