# Get label/class names from ComputationGraph

**URL:** <https://community.konduit.ai/t/get-label-class-names-from-computationgraph/683>\
**Category:** DL4J\
**Created:** [July 4, 2020, 1:09am UTC](https://community.konduit.ai/t/get-label-class-names-from-computationgraph/683 "2020-07-04T01:09:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lquintero07](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/lquintero07/32/254_2.png) [@lquintero07](https://community.konduit.ai/u/lquintero07)\
**Post date:** [July 4, 2020, 1:09am UTC](https://community.konduit.ai/t/get-label-class-names-from-computationgraph/683/1 "2020-07-04T01:09:36Z")

</div>

Hi Team,

While i was training a model i could see the below output

```
34 0 0 0 0 | 0 = ajmakoni
0 34 0 0 0 | 1 = bbface
0 0 34 0 0 | 2 = fatface
0 0 0 34 0 | 3 = me
0 0 0 0 34 | 4 = yellowhair

```

Is this information, names, stored on ComputationGraph?  
Is there a way i can get those names back when i try to predict some result?

Some guides could be very helpful.  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![lquintero07](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/lquintero07/32/254_2.png) [@lquintero07](https://community.konduit.ai/u/lquintero07)\
**Post date:** [July 4, 2020, 4:47pm UTC](https://community.konduit.ai/t/get-label-class-names-from-computationgraph/683/2 "2020-07-04T16:47:08Z")

</div>

I think i found the response: [DL4J - When using a ComputationGraph, is it possible to get the Class labels from it?](https://stackoverflow.com/questions/51390858/dl4j-when-using-a-computationgraph-is-it-possible-to-get-the-class-labels-fro)

---

<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:** [July 8, 2020, 7:32am UTC](https://community.konduit.ai/t/get-label-class-names-from-computationgraph/683/3 "2020-07-08T07:32:53Z")

</div>

As is said in that response, the labels aren’t stored in the Computation Graph itself.

However, they are usually available from the DataSetIterator (`getLabels()`) that you are using - and that output is taking it from there too.

---

<div class="post-metadata">

**Author:** ![lquintero07](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/lquintero07/32/254_2.png) [@lquintero07](https://community.konduit.ai/u/lquintero07)\
**Post date:** [July 15, 2020, 4:22pm UTC](https://community.konduit.ai/t/get-label-class-names-from-computationgraph/683/4 "2020-07-15T16:22:55Z")

</div>

Thanks for your response @treo.

Yes, im using the _getLabels()_ to get the information as you mention it.
