-
-
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
Fixes to FlsaModel #3435
Fixes to FlsaModel #3435
Conversation
Would it be worth declaring pyfume as an optional dependency of flsamodel? That would abstract the relationship a bit further. So basically use
Then change the user instructions in the error message (and any related documentation) to this:
This would abstract away the specifics - maybe in a future release, the pyfume version requirement will be bumped, or another dependency is needed for flsamodel, but the command to install the needed dependencies remains the same and the details will be managed in |
I can help, but I don't want to step on anyone's toes, nor take credit for other people's work. Also, learning opportunities shouldn't be wasted! How about this: If this PR is otherwise OK from your perspective, then merge it as it is now. I will then do (today) a subsequent PR only for the optional dependency declaration. After you have merged both PRs, you can make a release. That way @ERijck gets all the due credit and my little adjustment comes on top of that. |
Actually, I have a bit of time today so I'll do a minor code clean-up and push a PR myself :) |
That works too! Thank you for your understanding and patience. I will make sure to understand the git workflow better before I make my next PRs. |
I see, I wasn't aware of the other, conflicting PR. Well, I hope you can get it all sorted out, and if it helps, I can do a PR with the optional dependency part (though it really just adding the few lines I posted in the above comment to setup.py) |
@ERijck do you have a reference / link to an academic paper for FlsaModel? Something online where people can read more about what it is, how it works? The docstring says only |
Similar with the parameters:
Is there a description / tutorial somewhere for what this means? Which value to choose when and why? |
@piskvorky, I will write a post on my Towards Data Science account for FLSAmodel this weekend. Furthermore, see the links to the algorithm papers below. FLSA-W FLSA And links to the fuzzy clustering algorithms below: FCM GK FST-PSO |
Continuing further down the rabbit hole: Am I reading this correctly ( That is at odds with Gensim's core mission and interfaces. |
The code requires much more work than I anticipated. I opened #3437 which outlines what needs to be done. As it stands now, I'm -1 on keeping FlsaModel in Gensim, this should not have been merged. @mpenkov as a stop-gap measure, I propose a minimal PR to drop the |
Remove fuzzytm dependency and add ImportError for pyfume. Fixes points raised in #3428.