# Wrong Prediction of Action

**URL:** <https://forum.rasa.com/t/wrong-prediction-of-action/17184>\
**Category:** Rasa Open Source\
**Created:** [September 24, 2019, 6:22pm UTC](https://forum.rasa.com/t/wrong-prediction-of-action/17184 "2019-09-24T18:22:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank34](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/shashank34/32/5110_2.png) [@shashank34](https://forum.rasa.com/u/shashank34)\
**Post date:** [September 24, 2019, 6:22pm UTC](https://forum.rasa.com/t/wrong-prediction-of-action/17184/1 "2019-09-24T18:22:16Z")

</div>

Hi Team

Embedding policy predicting wrong action every time

check story for different action

FIRST

- match\_won
  - utter\_ask\_game\_type

- inform{“game\_type”: “cricket”}
  - slot{“game\_type”: “cricket”}
  - utter\_ask\_game\_name\_cricket

- inform{“game\_name”: “ONE\_DAY”}
  - slot{“game\_name”: “ONE\_DAY”}
  - utter\_ask\_date

- inform{“date”: “last night”}
  - slot{“date”: “last night”}
  - action\_match\_won

SECOND

- match\_won
  - utter\_ask\_game\_type

- inform{“game\_type”: “badminton”}
  - slot{“game\_type”: “badminton”}
  - utter\_ask\_game\_name\_badminton

- inform{“game\_name”: “BWF”}
  - slot{“game\_name”: “BWF”}
  - utter\_ask\_date

- inform{“date”: “last night”}
  - slot{“date”: “last night”}
  - action\_match\_won

predicting the wrong action for story SECOND

actual prediction - utter\_ask\_game\_name\_badminton

executed prediction - utter\_ask\_game\_name\_cricket

Thanks

---

<div class="post-metadata">

**Author:** ![GauravRoy48](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gauravroy48/32/5063_2.png) [@GauravRoy48](https://forum.rasa.com/u/GauravRoy48)\
**Post date:** [September 25, 2019, 5:48am UTC](https://forum.rasa.com/t/wrong-prediction-of-action/17184/2 "2019-09-25T05:48:40Z")

</div>

What is the slot type that you have used for “game\_type”?

---

<div class="post-metadata">

**Author:** ![shubham1140](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@shubham1140](https://forum.rasa.com/u/shubham1140)\
**Post date:** [September 25, 2019, 7:00am UTC](https://forum.rasa.com/t/wrong-prediction-of-action/17184/3 "2019-09-25T07:00:53Z")

</div>

It’s categorical

---

<div class="post-metadata">

**Author:** ![GauravRoy48](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gauravroy48/32/5063_2.png) [@GauravRoy48](https://forum.rasa.com/u/GauravRoy48)\
**Post date:** [September 25, 2019, 7:33am UTC](https://forum.rasa.com/t/wrong-prediction-of-action/17184/4 "2019-09-25T07:33:25Z")

</div>

In that case, may i see your “inform” intent and the structure of the slot that you have defined?

In the meantime I can also suggest creating a debug print in rasa with the following example:

In **nlu.md**

```
## intent:debug
- debug
- test

```

In **stories.md**

```
## debug path
* debug
  - utter_debug

```

In **domain.yml**

```
utter_debug:
  - text: '{game_type}'
```
