Fix training regression

This commit is contained in:
2026-05-08 13:01:09 -04:00
parent fbab1c9174
commit ec6586769f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ class TransactionClassifier:
output_dim=len(self.categories),
learning_rate=0.05,
reg_lambda=0.01,
max_iterations=3000,
max_iterations=6000,
)
self.model.train(x_vectors, label_indices, verbose=verbose)
+1
View File
@@ -76,6 +76,7 @@ def apply_mappings(transactions: list[Transaction], mappings: dict[str, Mapping]
assert mapping.count > 0, f"{mapping} used by {t} but count is not greater than '0'."
mapping.count -= 1
t.mapping = mapping
t.account2 = mapping.account2
else:
unmapped_count += 1
if unmapped_count > 0: