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

Fix visdom integration (using viz.line() instead of viz.updatetrace()) #2252

Merged
merged 11 commits into from
Jan 11, 2019

Conversation

allenyllee
Copy link
Contributor

Visdom had changed it's API according to this post: fossasia/visdom#359
Fixes #2155

Visdom had changed it's API according to this post: fossasia/visdom#359
@menshikh-iv
Copy link
Contributor

Hello @allenyllee, thanks for the fix: please

after this changes, I'll merge current PR.

@allenyllee
Copy link
Contributor Author

Sorry, this is my first pull request to this project, I don't very understand how to do what you say.

  1. Merge what to my branch? the latest commit in the develop branch? and make another pull request?
  2. Add to where? which file should I modify to add simple test?

@menshikh-iv
Copy link
Contributor

No problem @allenyllee,

(1) Merge develop to your branch from current repo, for this you need

(2) Add test in the same way as other tests, see any file in https://github.com/RaRe-Technologies/gensim/tree/develop/gensim/test

@allenyllee
Copy link
Contributor Author

Hi @menshikh-iv , I have done that all you had mentioned, but Travis CI still failed.

@horpto
Copy link
Contributor

horpto commented Dec 20, 2018

Hi, @allenyllee
It is some linter flake8 problems (TravisCI log):

gensim/models/callbacks.py:552:110: E231 missing whitespace after ','
                            Y=np.array([value]), X=np.array([epoch]), env=metric.viz_env, win=self.windows[i],update = 'append'
                                                                                                             ^
gensim/models/callbacks.py:552:117: E251 unexpected spaces around keyword / parameter equals
                            Y=np.array([value]), X=np.array([epoch]), env=metric.viz_env, win=self.windows[i],update = 'append'
                                                                                                                    ^
gensim/models/callbacks.py:552:119: E251 unexpected spaces around keyword / parameter equals
                            Y=np.array([value]), X=np.array([epoch]), env=metric.viz_env, win=self.windows[i],update = 'append'
                                                                                                                      ^
gensim/models/callbacks.py:552:121: E501 line too long (127 > 120 characters)
                            Y=np.array([value]), X=np.array([epoch]), env=metric.viz_env, win=self.windows[i],update = 'append'
                                                                                                                        ^
gensim/test/test_lda_callback.py:20:1: F401 'numpy as np' imported but unused
import numpy as np
^
gensim/test/test_lda_callback.py:56:1: E305 expected 2 blank lines after class or function definition, found 1
FLAGS = ARGS()
^
gensim/test/test_lda_callback.py:66:121: E501 line too long (124 > 120 characters)
        self.ch_umass = CoherenceMetric(corpus=self.corpus, coherence="u_mass", logger="visdom", title="Coherence (u_mass)")
                                                                                                                        ^
gensim/test/test_lda_callback.py:138:13: E265 block comment should start with '# '
            #raise AttributeError("test")
            ^
gensim/test/test_lda_callback.py:158:1: E305 expected 2 blank lines after class or function definition, found 1
if __name__ == '__main__':
^
gensim/test/test_lda_callback.py:160:1: W391 blank line at end of file
^

@allenyllee
Copy link
Contributor Author

Hi @menshikh-iv , finally, I have passed all checks!

@menshikh-iv menshikh-iv changed the title Fixes #2155: using viz.line() instead of viz.updatetrace() Fix visdom integration (using viz.line() instead of viz.updatetrace()) Jan 11, 2019
@menshikh-iv
Copy link
Contributor

Thank you @allenyllee 👍

@menshikh-iv menshikh-iv merged commit 007afa1 into piskvorky:develop Jan 11, 2019
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.

3 participants