-
Notifications
You must be signed in to change notification settings - Fork 206
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
can "OneVsRestClassifier" be usefull to tune FMclassification into a multi-class classification case #49
Comments
Actually there is a |
thank you so much,I was thinking to try implementing a customized
|
You are talking about the |
yes, I am facing a multi-class classification problem and I was thinking to use
with the above code I face the following error related to
I thought maybe it is because of the fact that sgd (or als) solver has not a proper decision_function for |
The Cannot clone object FMClassification error has been reported before #44 .
I think it's better to fix this clone issue first, maybe that fixes your problem too. I'll look into it but it might take a while. Your example doesn't run. You could just adapt the code from http://scikit-learn.org/stable/auto_examples/plot_multilabel.html to create a self contained example. |
@ibayer I tried to solve that clone problem we faced and the problem was in
I had make a change in |
I was able to get the
Basically, scikit produces [0, 1] labels which must be converted to [-1, 1] labels. Then it extracts the probabilities from what it assumes is a (n_instances, 2) array. Broadcasting the values would be better than my tiling solution, but I didn't know the syntax off the top of my head. There may be other changes needed to make the API fully compatible; I haven't tested this with a pipeline. |
I want to use fm to solve a multi-class classification problem too,Can you give some advise? @farimahfanaei @ibayer @macks22 |
As fastFM-core only accept {1,-1} as class labels and there is no predict_proba or decision_function I was wondering if it can fully satisfy the expectations of OneVsRestClassifierI?
If so is there any tip or solution so that I can apply sgd-FMclassification in multi-class problem?
The text was updated successfully, but these errors were encountered: