You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to use your LogisticRegressionL1L2GL for a binary classification problem. I've done so using the scikit-learn Pipeline, in which the previous steps, before using the LogisticRegressionL1L2GL, are a countVectorizer and a tfidftransformer. To be able to utilize your LogisticRegressionL1L2GL in this setup I have to convert the csr_matrix format that the previous step outputs into an array to be used in the X attribute in the fit and predict methods, which I do. However, the results of the classification is always of one class. I've looked into the code and I've found that the probability given to each instance is 0.5 and as such the classification given is 1.0.
Could I be doing something wrong, and if so, is there any insight you could provide?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Currently, the estimators in pylearn-parsimony do not conform to scikit-learn. We have discussed this at several occasions, but have not yet found a good way to make it work, nor to implement it. There are several problems with this, the main one being that the scikit-learn estimators are required to conform to certain method signatures (i.e. they must accept certain arguments). In pylearn-parsimony, the arguments may differ from these requirements, and is generally much more liberal in terms of the arguments that are accepted. This can certainly be overcome, but we have currently not yet done it.
Hello,
I've been trying to use your LogisticRegressionL1L2GL for a binary classification problem. I've done so using the scikit-learn Pipeline, in which the previous steps, before using the LogisticRegressionL1L2GL, are a countVectorizer and a tfidftransformer. To be able to utilize your LogisticRegressionL1L2GL in this setup I have to convert the csr_matrix format that the previous step outputs into an array to be used in the X attribute in the fit and predict methods, which I do. However, the results of the classification is always of one class. I've looked into the code and I've found that the probability given to each instance is 0.5 and as such the classification given is 1.0.
Could I be doing something wrong, and if so, is there any insight you could provide?
Thanks in advance
The text was updated successfully, but these errors were encountered: