The two hooks are going to be applied in the order that they appear in the array. My guess is that the first 3 debug lines are from the PredictPostings hook, followed by 2 debug lines from PredictPayees.
My guess is that out of your 42 transactions only one has a payee listed or multiple transactions have the same payee. The rules for payee/narration tripped me up at first, so you might want to review the docs for payee and narration here: https://beancount.github.io/docs/beancount_language_syntax.html#payee-narration Hope this helps! Eric On Wed, Dec 2, 2020 at 4:03 PM Brian McGee <[email protected]> wrote: > Thanks so much Aaron — > > I actually have 42 of the transactions from that account in my > finances2020.beancount and am attempting to import 28 transactions with the > same account. Maybe because I pass in the account in the .import file > rather than explicitly in the importer? > > brianCheck = usaa.USAABankImporter( > 'Assets:USAA:PersonalChecking', > > > Brian McGee > p. 781.856.8523 > http://www.brianmcgee.tv > > > On Wed, Dec 2, 2020 at 11:28 AM Aaron Lindsay <[email protected]> wrote: > >> It's hard to make perfect sense of your DEBUG prints since I don't know >> where in the code you inserted them, but is it possible you only have 42 >> transactions total in finances2020.beancount and only 1 against the account >> you're importing into? >> >> -Aaron >> >> On Wednesday, December 2, 2020 at 2:16:12 PM UTC-5 [email protected] >> wrote: >> >>> Smart Importer appears to be working but I cannot get it to train >>> properly (I think, I'm green). Is this the right place for this question? >>> Thanks so much. >>> >>> Here is my logging debug: >>> DEBUG - Calling the importer's extract method. >>> DEBUG - Filtered training data to 42 of 134 entries. >>> DEBUG - Trained the machine learning model. DEBUG - Added predictions to >>> transactions. >>> DEBUG - Filtered training data to 42 of 134 entries. >>> WARNING - Cannot train the machine learning model because there is only >>> one target. >>> >>> my bean-extract call: >>> bean-extract -e finances2020.beancount personal.import >>> documents/preImport/renamed >>> >>> applying hooks: >>> apply_hooks(brianCheck, [PredictPostings(), PredictPayees()]), >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Beancount" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/beancount/Z22nmCYH1Qw/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/beancount/b32ac673-610c-4a82-8935-be08612b04bdn%40googlegroups.com >> <https://groups.google.com/d/msgid/beancount/b32ac673-610c-4a82-8935-be08612b04bdn%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "Beancount" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAONa%2BnTmVcFJu%2BS_Au-DAWsvHPCt8BmyReqbQTW24Y2EuY2trg%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAONa%2BnTmVcFJu%2BS_Au-DAWsvHPCt8BmyReqbQTW24Y2EuY2trg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CA%2BEB4JLOJAE90tOgPmcdrLYYV7hv2-vm%2BZxnAfCdvFQuWAwEXg%40mail.gmail.com.
