Unable to train from feedback with mitie-sklearn backend
See original GitHub issueI was building a bot using wit.ai Recently i am planning to move from wit.ai to rasa.ai I exported the expressions from witai and trained them in rasa.ai
When I am trying to retrain the model with new expressions and new/existing intents, I am getting errors like:
- ValueError: Found array with 0 sample(s) (shape=(0,)) while a minimum of 1 is required.
- ValueError: models greater than splits
- ValueError: The number of classes has to be greater than one; got 1
The input file to train is:
curl -XPOST localhost:5000/train -d'{
"rasa_nlu_data":{
"intent_examples":[
{
"text":"Receive calls on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"Receive calls on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"Receive calls on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i make calls to any operator using vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i make calls to any operator using vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i make calls to any operator using vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i make calls to any operator using vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i receive calls from any operator on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i receive calls from other operator on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i receive calls from any operator on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"can i receive calls from any operator on vogapp",
"intent":"vogapp_call_outgoing",
"entities":[
]
},
{
"text":"Can I make a vogapp call without going into the app",
"intent":"vogapp_call_query",
"entities":[
]
},
{
"text":"Can I make a vogapp call without going into the app",
"intent":"vogapp_call_query",
"entities":[
]
}
]
}
}'
There are more than one class and more than one expression for each of them. I am unable to understand why these errors are coming.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
No results found
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
I ve created a seperate issue describing the underlying issue. #198
Right, ok the issue is that you need more training samples (i think at least 3 per intent for spacy / mitie-sklearn).