generated from felixm/defaultpy
Fix training regression
This commit is contained in:
@@ -239,7 +239,7 @@ class TransactionClassifier:
|
|||||||
output_dim=len(self.categories),
|
output_dim=len(self.categories),
|
||||||
learning_rate=0.05,
|
learning_rate=0.05,
|
||||||
reg_lambda=0.01,
|
reg_lambda=0.01,
|
||||||
max_iterations=3000,
|
max_iterations=6000,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.model.train(x_vectors, label_indices, verbose=verbose)
|
self.model.train(x_vectors, label_indices, verbose=verbose)
|
||||||
|
|||||||
@@ -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'."
|
assert mapping.count > 0, f"{mapping} used by {t} but count is not greater than '0'."
|
||||||
mapping.count -= 1
|
mapping.count -= 1
|
||||||
t.mapping = mapping
|
t.mapping = mapping
|
||||||
|
t.account2 = mapping.account2
|
||||||
else:
|
else:
|
||||||
unmapped_count += 1
|
unmapped_count += 1
|
||||||
if unmapped_count > 0:
|
if unmapped_count > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user