Add LogisticRegression as a replacement for SKlearnIntentClassifier
See original GitHub issueWhat problem are you trying to solve?
The current implementation for the SklearnIntentClassifier
is a bit of an anti-pattern. It does a grid-search internally and it can only use the dense features in the Rasa pipeline. If we want to have an alternative to benchmark DIET, we may want to introduce another method.
What’s your suggested solution?
My proposal here is to replace it with a simple logistic regression classifier. This should train faster and it’s also very lightweight.
Examples (if relevant)
There’s an implementation in rasa nlu examples that we could go ahead and port.
Is anything blocking this from being implemented? (if relevant)
No response
Definition of Done
We should make sure that:
- the logistic regression gets a proper review
- we also consider how we want to deprecate the original sklearn classifier
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
sklearn.linear_model.LogisticRegression
Specifies if a constant (a.k.a. bias or intercept) should be added to the decision function. intercept_scalingfloat, default=1. Useful only when the solver ' ......
Read more >Components - Rasa
The sklearn intent classifier trains a linear SVM which gets optimized using a grid search. It also provides rankings of the labels that...
Read more >Logistic Regression using Python (scikit-learn)
While this tutorial uses a classifier called Logistic Regression, ... To do this are going to see how the model performs on the...
Read more >LogisticRegression - Rasa NLU Examples
This classifier only looks at sparse features extracted from the Rasa NLU feature pipeline and is a much faster alternative to neural models...
Read more >How to retrain logistic regression model in sklearn with new data
A question: can you not add the new data to the original one and retrain on the entire data set? As a side...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Exalate commented:
dakshvar22 commented:
All the datasets on which we run model regression tests
➤ Maxime Verger commented:
💡 Heads up! We’re moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.
From now on, this Jira board is the place where you can browse (without an account) and create issues (you’ll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!
➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.