-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add inference for new unseen author for gensim.models.AuthorTopicModel
#1766
Changes from 1 commit
f68dfe9
2843d1b
92ef759
ee51f71
2de1b34
cbe9049
a94c0b1
783a585
3849711
a85563b
5eb84ff
7df7065
f818bf2
8c5765f
5ad9a0b
8e4899c
10ba9c8
0a3eedb
f587596
1bc929c
6085b90
34f5222
6d7141d
c525845
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -940,7 +940,11 @@ def get_new_author_topics(self, corpus, minimum_probability=None): | |
""" | ||
# TODO: how should this function look like for get_new_author_topics? | ||
def rho(): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Stamenov @olavurmortensen Please document the rationale behind this definition of rho. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In a different place you explain rho as following: |
||
<<<<<<< Updated upstream | ||
return pow(self.offset + 1 + 1, -self.decay) | ||
======= | ||
return pow(self.offset + 1, -self.decay) | ||
>>>>>>> Stashed changes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. D'oh! |
||
|
||
# Wrap in fuction to avoid code duplication. | ||
def rollback_new_author_chages(): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's about this TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned I am iteration over a few versions for the function and will commit the best performing.
It was already discussed here that it is not clear how we should implement this one.