activelearning | Active Learning for text classification | Machine Learning library
kandi X-RAY | activelearning Summary
kandi X-RAY | activelearning Summary
created on jul 4, 2014 based on this program implements active learning (for text classification tasks with scikit-learn's linearsvc classifier. despite differences this can also be called incremental training. instead of using stochastic gradient descent we used the batch mode because the data is not that big and accuracy here was more of concern than efficiency. the algorithm trains the model based on a train dataset and evaluates using a test dataset. after each evaluation algorithm selects 2*num_questions samples from unlabeled dataset in order to be labeled by a user/expert. the labeled sample is then moved to the corresponding directory in the train dataset and the model will start training again with the new improved training set.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of activelearning
activelearning Key Features
activelearning Examples and Code Snippets
Community Discussions
Trending Discussions on activelearning
QUESTION
I had read documents, and tried to run Active learning sample. I can understand how the program works.
The documents refer to Implicit feedback and Explicit feedback. I have two questions.
I can find the Explicit feedback' code. But I don't understand when the knowledgebase will show the feedback.
Implicit feedback where is the code? no code? I think both Implicit feedback and Explicit feedback have similar scores. what's the difference?
ANSWER
Answered 2019-Mar-14 at 16:45So, as the docs on active learning state, implicit feedback occurs when
when a user question has multiple answers with scores that are very close,
whereas with explicit feedback is the feedback that is received when the
Where is the feedback collectedclient application asks the user which question is the correct question [and the user's selected question is used as explicit feedback
The feedback is collected from the conversation between user and bot. As of now, feedback is not collected in the Test panel in the qnamaker.ai portal.
Where do we see the suggested questions generated via Active Learning?When "enough" feedback is collected on a cluster of question and answer pair, you will see the active learning feedback inside the portal at qnamaker.ai > Edit
Further Active Learning ExplanationI'll include here one of my posts from a thread regarding Active Learning below. I would encourage you to read the full thread on active learning that was opened as a Microsoft Docs issue afterwards, however, to see included screenshots.
@Souvik04, follow the link to the Active Learning sample bot in the BotFramework-Samples repo for a example of how you can query the QnA service from your bot with active learning enabled. ___ After conversing with the QnA team (Rohit is included in the conversation), here's a little more light regarding when you would actually see the suggestions inside the portal at qnamaker.ai.
When there is a low confidence score difference between the top answers, we collect weighted implicit and explicit feedback to cluster suggestions for any QnA ID. => When enough feedback is collected for any given suggestion, it will show in the KB.
More specifically, we cluster similar user queries to generate suggestions. When minimum required feedback is collected, only then will the suggestions show in the KB.
The QnA team wants to avoid publicly divulging the exact logic of what exactly is the "minimum required feedback" and how often suggestions are generated (besides, the team is working on improving and optimizing the logic behind active learning as well) --however to see suggestions appear in the qnamaker.ai portal: * not only ensure that you've given the bot enough feedback * but also give the back end "some time" to allow for the suggestions to appear in the portal.
Again, feedback is collected when your user types in a query that returns answers from QnA that have confidence scores that are close together.
It is also good to note that feedback is not collected in the Test panel in the qnamaker.ai portal as of now. You will need to chat with your bot via emulator or a channel to provide feedback to your bot that it can use for active learning.
QUESTION
My FAQ bot is using this QnAMakerDialog which is not using Microsoft.Bot.Builder.CognitiveServices.QnAMaker, but easy to use metadatas.
However I also want to train[CustomFeedBack, ActiveLearning] like these samples which is using Microsoft.Bot.Builder.CognitiveServices.QnAMaker.
Microsoft.Bot.Builder.CognitiveServices.QnAMaker provides method like QnAFeedbackStepAsync.
Q1: Does QnAMakerDialog which is not using Microsoft.Bot.Builder.CognitiveServices.QnAMaker have some similar methods like QnAFeedbackStepAsync ?
Q2: How to use metadata while using Microsoft.Bot.Builder.CognitiveServices.QnAMaker ?
Q3: QnA Maker REST API V4.0 don't support to use train knowledgebases. Although my bot is using V3.0, is it better not to use train knowledgebases?
...ANSWER
Answered 2018-Aug-21 at 11:20When user ask any question save this question somewhere else if this question is appropriate then add this question as alternative question . Now in your chatbot's database 2 questions are mapped to one answer. Now you're chatbot is more trained as compared to previous one.. by this you can manage log of chatbot
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install activelearning
You can use activelearning like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page