Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeding Topic Models Broken? #2

Open
jarbus opened this issue May 2, 2021 · 0 comments
Open

Seeding Topic Models Broken? #2

jarbus opened this issue May 2, 2021 · 0 comments

Comments

@jarbus
Copy link

jarbus commented May 2, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant