# About the order of multi label

**URL:** https://community.konduit.ai/t/about-the-order-of-multi-label/360
**Category:** DL4J
**Created:** [April 3, 2020, 1:15am UTC](https://community.konduit.ai/t/about-the-order-of-multi-label/360 "2020-04-03T01:15:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![blackwingf](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/blackwingf/32/87_2.png) [@blackwingf](https://community.konduit.ai/u/blackwingf)
#### Post date: [April 3, 2020, 1:15am UTC](https://community.konduit.ai/t/about-the-order-of-multi-label/360/1 "2020-04-03T01:15:12Z")

</div>

How do I know according order of the origin corpus, for example  
turn on the air conditioner and then raise the temperature

there are two intents in order.  
But predictions from model is in no order  
INDArray predictions = net.outputSingle(input);  
So how can I get the right prediction with the same order of original corpus

---

<div class="post-metadata">

### Author: ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)
#### Post date: [April 3, 2020, 8:15am UTC](https://community.konduit.ai/t/about-the-order-of-multi-label/360/2 "2020-04-03T08:15:50Z")

</div>

If you have a sequence dependent order, it might be more reasonable to use a recurrent architecture with only one result each.

If you want to keep using a multi label system, you always get those results simultaneously, so you will have to create a set of rules of how to order them.

---

<div class="post-metadata">

### Author: ![blackwingf](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/blackwingf/32/87_2.png) [@blackwingf](https://community.konduit.ai/u/blackwingf)
#### Post date: [April 4, 2020, 3:28am UTC](https://community.konduit.ai/t/about-the-order-of-multi-label/360/3 "2020-04-04T03:28:50Z")

</div>

If I switch from TextCNN to bi-lstm，how to do multi label classification?  
Is there any examples ?

---

<div class="post-metadata">

### Author: ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)
#### Post date: [April 5, 2020, 10:06am UTC](https://community.konduit.ai/t/about-the-order-of-multi-label/360/4 "2020-04-05T10:06:04Z")

</div>

There aren’t any examples that I’m aware of. But the idea is pretty simple: Instead of having an output of [0, 1, 1, 0, 1], you get a sequence of outputs [0, 1, 0, 0, 0], [0, 0, 1, 0, 0], [0,0,0,0,1]. Effectively making it a sequence of the labels - ideally it should be in the same order that you want to get out.

But, again if the multi label version works fine for you otherwise, having a rule based system for what actions to do in which order may be easier to make it work.

---

<div class="post-metadata">

### Author: ![blackwingf](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/blackwingf/32/87_2.png) [@blackwingf](https://community.konduit.ai/u/blackwingf)
#### Post date: [April 5, 2020, 11:58am UTC](https://community.konduit.ai/t/about-the-order-of-multi-label/360/5 "2020-04-05T11:58:35Z")

</div>

thank you.  
I will consider each implementation
