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

Empty: Failed to retrive number of trained models #12

Closed
kamil-safin opened this issue Dec 2, 2019 · 5 comments
Closed

Empty: Failed to retrive number of trained models #12

kamil-safin opened this issue Dec 2, 2019 · 5 comments
Labels
good first issue Good for newcomers Resolved issue has been resolved

Comments

@kamil-safin
Copy link

I installed topicnet through pip and have 'Empty: Failed to retrive number of trained models' when trying to run my_first_cube(tm, data) from guide

@Evgeny-Egorov-Projects
Copy link
Contributor

Evgeny-Egorov-Projects commented Dec 2, 2019

Hi there!

Seems like in your case our multithreading approach failed to finish training a model before the program tried to extract it to the parent process. A quick way to fix this issue would be to use
separate_thread=False option in:

my_first_cube = RegularizersModifierCube(
    num_iter=5,
    tracked_score_function='PerplexityScore@lemmatized',
    regularizer_parameters={
        'regularizer': artm.DecorrelatorPhiRegularizer(name='decorrelation_phi', tau=1),
        'tau_grid': [0,1,2,3,4,5],
    },
    reg_search='grid',
    separate_thread=False,
    verbose=True
)

Could you, please tell a bit more about the dataset you used and the system configuration you trained it on?

@kamil-safin
Copy link
Author

Hi
I use dataset of chat conversation with about 6k short dialogues. My system is MasOS with topicnet==0.4.1. I'm following your guide but use my own dataset.
And now I have:
InvalidOperationException: TopicKernelScoreConfig.class_id @bigram does not exists in n_wt matrix

@Evgeny-Egorov-Projects
Copy link
Contributor

Did you use our preprocessing guide?
Can you confirm that you have modality named '@bigram' in your dataset?
If you have that modality can you check if it is not empty?

@kamil-safin
Copy link
Author

Yes, I used
Example of single line in dataset ('vw_text' field):
6 |@lemmatized подать:1 новый:1 заявка:1 |@bigrams подать_новый:1 новый_заявка:1
How can check the existence of modality in my model?

@kamil-safin
Copy link
Author

sorry, my bad:
used '@bigram' and '@bigrams' in different places of code
thanks for separate_thread solution!

@Evgeny-Egorov-Projects Evgeny-Egorov-Projects added the good first issue Good for newcomers label Dec 2, 2019
@Evgeny-Egorov-Projects Evgeny-Egorov-Projects added the Resolved issue has been resolved label Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers Resolved issue has been resolved
Projects
None yet
Development

No branches or pull requests

2 participants