Skip to content

No predicted postings for most transactions #149

Description

@sim642

I have manually labelled a lot of data to train from, e.g.

2015-10-03 * "AS EESTI TELEKOM" ""
  Assets:Swedbank:Main  -5.75 EUR
  Expenses:Phone

2015-10-16 * "TARTU ÜLIKOOL" "Õppetoetus"
  Assets:Swedbank:Main  240.00 EUR
  Income:Uni-Tartu:Stipends

For new unlabeled data, I have an importer that gives

2016-01-04 * "AS EESTI TELEKOM" ""
  Assets:Swedbank:Main  -5.60 EUR

2016-01-07 * "TARTU ÜLIKOOL" "Õppetoetus"
  Assets:Swedbank:Main  240.00 EUR

If I also apply the PredictPostings hook to that and enable debug logging, it prints

DEBUG:smart_importer.predictor:Loaded training data with 1057 transactions, filtered from 1743 total transactions
DEBUG:smart_importer.predictor:Trained the machine learning model.
DEBUG:smart_importer.predictor:Apply predictions with pipeline
DEBUG:smart_importer.predictor:Added predictions to 187 transactions

The result is

2016-01-04 * "AS EESTI TELEKOM" ""
  Assets:Swedbank:Main  -5.60 EUR
  Expenses:Phone

2016-01-07 * "TARTU ÜLIKOOL" "Õppetoetus"
  Assets:Swedbank:Main  240.00 EUR

Actually over 90% of transactions are not labeled, even though smart_importer claims to add to all 187 transactions in the file.
Also, it's correctly set up because it does work for a handful of transactions, so it's not completely broken.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions