Skip to content

Weird predictions in gen_beam() #2

@HelloJocelynLu

Description

@HelloJocelynLu

Hi there,
I was trying to run the model. After trying:

$ python transformer.py --predict uspto-50k/patents_test100.csv.can --model models/base-retrosynthesis.h5

I got “list index out of range” error and upon checking, I found that "Final beams: 0". The function gen(mdl, product) works as normal but the same product produces meaningless sequences, such as “c12c(cccc2C2c2c3c(c(cc3C2C2c3c(cc(cc3C1)C2c1coc(c1)Cl)cs2...” in gen_beam(mdl_encoder, mdl_decoder, T, product, beam_size) function.

Did I miss something? Any help/suggestion would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions