@akelad @souvikg10
Many people are facing the same issue.So I will write the complete solution for this.
python -m rasa_core.run -d models/dialogue -u models/nlu/default/chatter --debug --endpoint endpoints.yml
On debugging, I reached up to the point where action was not executed correctly as probability for the other action was little high( action_validate:0.52,action_execute:0.46 ) even though it has to predict action_execute as per the story. I checked the current tracker state at the point it was failing. It returns a list as follows
Current tracker state =[{'prev_action_save_userID': 1.0, 'intent_inform': 1.0, 'entity_param': 1.0}, {'intent_inform': 1.0, 'entity_param': 1.0, 'prev_utter_orgID': 1.0}, {'prev_action_listen': 1.0, 'intent_inform': 1.0, 'entity_param': 1.0}, {'intent_inform': 1.0, 'entity_param': 1.0, 'prev_action_save_orgID': 1.0}, {'intent_inform': 1.0, 'entity_param': 1.0, 'prev_utter_trnID': 1.0}, {'prev_action_listen': 1.0, 'intent_inform': 1.0, 'entity_param': 1.0}, {'intent_inform': 1.0, 'entity_param': 1.0, 'prev_action_save_trnID': 1.0}, {'intent_inform': 1.0, 'entity_param': 1.0, 'prev_utter_areaID': 1.0}, {'prev_action_listen': 1.0, 'intent_inform': 1.0, 'entity_param': 1.0}, {'intent_inform': 1.0, 'entity_param': 1.0, 'prev_action_save_areaID': 1.0}]
which is a list of length 10(my max_history was also 10) and it starts from prev_action_save_userID which is same in both stories.
It meant that my story is not getting the first step i.e the intent in the tracker state list. I checked the core training file and changed my max_history to 30 so that it can capture full story. For better prediction of unknown, I also changed max_history in keras.
Also,set augmentation factor to 0. And the bot was behaving perfectly fine.
from rasa_core.policies.memoization import MemoizationPolicy
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.featurizers import MaxHistoryTrackerFeaturizer, BinarySingleStateFeaturizer, SingleStateFeaturizer
fallback = FallbackPolicy(fallback_action_name="utter_unclear",core_threshold=0.2, nlu_threshold=0.8)
agent = Agent(Domain.load(domain_file) , policies=[MemoizationPolicy(max_history=30),KerasPolicy(MaxHistoryTrackerFeaturizer(BinarySingleStateFeaturizer(),
max_history=10)),fallback])
data = agent.load_data(training_data_file,augmentation_factor=0)
agent.train(
data,
epochs = 700,
batch_size = 50,
validation_split = 0.0)