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

gensim/test/test_coherencemodel.py: Make testProcesses match implementation #3564

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

sanvila
Copy link

@sanvila sanvila commented Nov 11, 2024

Fixes this error when building on a single-CPU system:


=================================== FAILURES =================================== _______________________ TestCoherenceModel.testProcesses _______________________

self = <gensim.test.test_coherencemodel.TestCoherenceModel testMethod=testProcesses>

    def testProcesses(self):
        get_model = partial(CoherenceModel,
            topics=self.topics1, corpus=self.corpus, dictionary=self.dictionary, coherence='u_mass'
        )

        model, used_cpus = get_model(), mp.cpu_count() - 1
>       self.assertEqual(model.processes, used_cpus)
E       AssertionError: 1 != 0

gensim/test/test_coherencemodel.py:152: AssertionError ------------------------------ Captured log call ------------------------------- WARNING  gensim.models.ldamodel:ldamodel.py:959 too few updates, training might not converge; consid er increasing the number of passes or iterations to improve accuracy

…tation

Fixes this error when building on a single-CPU system:

=================================== FAILURES ===================================
_______________________ TestCoherenceModel.testProcesses _______________________

self = <gensim.test.test_coherencemodel.TestCoherenceModel testMethod=testProcesses>

    def testProcesses(self):
        get_model = partial(CoherenceModel,
            topics=self.topics1, corpus=self.corpus, dictionary=self.dictionary, coherence='u_mass'
        )

        model, used_cpus = get_model(), mp.cpu_count() - 1
>       self.assertEqual(model.processes, used_cpus)
E       AssertionError: 1 != 0

gensim/test/test_coherencemodel.py:152: AssertionError
------------------------------ Captured log call -------------------------------
WARNING  gensim.models.ldamodel:ldamodel.py:959 too few updates, training might not converge; consid
er increasing the number of passes or iterations to improve accuracy
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

Successfully merging this pull request may close these issues.

1 participant