Skip to content

Seeding Topic Models Broken? #2

@jarbus

Description

@jarbus

I'm trying to seed a topic model, but apparrently loading a seed matrix requires the function get_seed_matrix_from_file that isn't defined or imported anywhere in trainer.py.

Traceback (most recent call last):
  File "tmnt/bin/select_model.py", line 26, in <module>
    model_select_bow_vae(args)
  File "/home/jack/anaconda3/envs/TMNT/lib/python3.7/site-packages/tmnt/selector.py", line 157, in model_select_bow_vae
    trainer = BowVAETrainer.from_arguments(c_args, val_each_epoch = (not (c_args.searcher == 'random')))
  File "/home/jack/anaconda3/envs/TMNT/lib/python3.7/site-packages/tmnt/trainer.py", line 261, in from_arguments
    use_gpu=c_args.use_gpu, n_covars=n_covars, val_each_epoch=val_each_epoch)
  File "/home/jack/anaconda3/envs/TMNT/lib/python3.7/site-packages/tmnt/trainer.py", line 221, in __init__
    self.seed_matrix = get_seed_matrix_from_file(topic_seed_file, vocabulary, ctx)
NameError: name 'get_seed_matrix_from_file' is not defined

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