question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add LogisticRegression as a replacement for SKlearnIntentClassifier

See original GitHub issue

What 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:open
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dakshvar22commented, Mar 17, 2022

Exalate commented:

dakshvar22 commented:

All the datasets on which we run model regression tests

0reactions
sync-by-unito[bot]commented, Dec 16, 2022

➤ 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found